im using CR Developer 8.5 and i want to format a certain number whose value is 8.55 would be formated as "8.55" but if the value is 8.00 then "8" only. is there any direct function for this? thanks.
If you select your field and choose "Format Field" and under "Number" click on "Customize".
Click on the "X+2-button" on the right side of "decimals".
There you write a formula like this:
if {number.field}-truncate({numberfield})<>0 then 2 else 0
if {number.field} = 0 then
ToText({number.field},0)
else
if {number.field} / int({number.field}) > 1 then
ToText({number.field})
else
ToText(int({number.field}),0)
Gorans first suggestion IS formatting with a formula. I do not understand what is wrong with that solution. Software Training and Support for Macola, Crystal Reports and Goldmine
251-621-8972
dgilsdorf@mchsi.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.