Link to home
Start Free TrialLog in
Avatar of aprnka
aprnka

asked on

How do I format a number in a Crystal formula field

How do I format a number in a Crystal formula field?  The formula I have entered in the field is:
formula = {PurchaseOrderLines.UPMLWIDTH} &  "''W x " & {PurchaseOrderLines.UPMLLENGTH} & "'L"

I want to format the field purchaseorderlines.upmlwidth and purchaseorderline.upmllength to show 3 decimals places - (example:  2.253).  Currently, only 2 decimal places are showing and it is rounding up/down.  I am not able to format this field like a normal numeric field in Crystal.  On numeric fields, I normally choose format field and choose the number tab and make my selection.  In this case, the number tab does not show.  

ASKER CERTIFIED SOLUTION
Avatar of LinInDenver
LinInDenver
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike McCracken
Mike McCracken

Looks good.  If the numbers can be larger than 1000 then you may want to also specify the thousand separator.

No thousand separator
totext(numberfield,3,'')

mlmcc