Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Crystal Report Number Field Formatting

Crystal Report Number Field Formatting

Scheduled Pinned Locked Moved .NET (Core and Framework)
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    salaikumar
    wrote on last edited by
    #1

    Hello I have a column in crystal report which can display both float values as well as integer values... Using formatting i set the decimal notation as 000.000 it is working fine for float.. but for integer values also it displays decimal part (like 5.000) I want it to be displayed like an integer 5 Any options available in reports/?? Thanks in Advance...

    Salai

    W 1 Reply Last reply
    0
    • S salaikumar

      Hello I have a column in crystal report which can display both float values as well as integer values... Using formatting i set the decimal notation as 000.000 it is working fine for float.. but for integer values also it displays decimal part (like 5.000) I want it to be displayed like an integer 5 Any options available in reports/?? Thanks in Advance...

      Salai

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      You set a formula to the number of decimal places in number Custom Style dialog. In that formula you resolve if the number is integer or float. If it's an integer you return 0 (meaning no decimal places) and if it's a float you return 3 if you want three decimals. Another option is to create a new formula field and use type conversion functions etc such as CStr. Then place this field into the report.

      The need to optimize rises from a bad design

      S 1 Reply Last reply
      0
      • W Wendelius

        You set a formula to the number of decimal places in number Custom Style dialog. In that formula you resolve if the number is integer or float. If it's an integer you return 0 (meaning no decimal places) and if it's a float you return 3 if you want three decimals. Another option is to create a new formula field and use type conversion functions etc such as CStr. Then place this field into the report.

        The need to optimize rises from a bad design

        S Offline
        S Offline
        salaikumar
        wrote on last edited by
        #3

        Mika.... Thanks it worked fine... Thank you so much

        Salai

        W 1 Reply Last reply
        0
        • S salaikumar

          Mika.... Thanks it worked fine... Thank you so much

          Salai

          W Offline
          W Offline
          Wendelius
          wrote on last edited by
          #4

          You're welcome :)

          The need to optimize rises from a bad design

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups