Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rounding numbers in formula 2

Status
Not open for further replies.

jlhart76

Technical User
Feb 22, 2005
20
US
I have a report that calculates the percentage meeting certain elements using the formula:
if DENOMINATOR=0 then "N/A"
else totext (PERCENT)*100

I want to round the number to a 0.1 digit, but using truncate or round command gives me a whole number [11.73 is rounded to 11.0]

Is there another command I can use? I've tried formatting it to percent, using the decrease decimal command, etc. but it won't allow me to do either.
 
Try:

if DENOMINATOR=0 then "N/A"
else totext(PERCENT*100,2)

The "2" will define the number of decimals.

-LB
 
Worked perfectly! Thanks, you're a peach!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top