cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide unwanted zero from decimals

former_member709690
Participant
0 Kudos

Hi,

may i know how do i hide unwanted zero from decimals, such as if i have value 3.4000 then i want report should present it as 3.40 but there is a value 3.4123 then i want report should present it as 3.4123.

Please advise.

Accepted Solutions (1)

Accepted Solutions (1)

DellSC
Active Contributor
0 Kudos

To do this, you would have to create a formula that will convert the number to text for display. It would look something like this:

ToText({MyTable.NumberField}, '#.00####')

This would show up to 6 digits after the decimal if they're available and shows a minimum of 2 digits, including zeroes, after the decimal if there's only 1 digit after the decimal in the data.

-Dell

former_member709690
Participant
0 Kudos

Hi Dell,

Thank you very much!

Answers (1)

Answers (1)

former_member775661
Participant
0 Kudos

Hi muddasir89

In crystal report, select the field and right click, choose the format field and go to number tab. You can click customize for your desired format. Regards