cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Number Formatting Question

Former Member
0 Kudos

Need a formula for some number formatting.

If a number is a whole number I need it to show no decimal places, just the number itself.

So: 7.000 would be 7

if a number is not a whole number i need it to show three decimal places

So: 7.25 would be 7.250

Thanks for the help!

Accepted Solutions (1)

Accepted Solutions (1)

vitaly_izmaylov
Employee
Employee
0 Kudos

If you need it for display only, then you can convert it to text using the following formula:

numbervar x:={your number};

if x=round(x) then totext(x,0) else totext(x,3)

Answers (0)