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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rounding Formula 2

Status
Not open for further replies.

elf1

Technical User
Jun 6, 2001
43
US
I am wanting a field to round up to the next hundredth(.00) if the next thousandth(.000) is .001 on greater. I am not sure how to write the proper rounding_type formula for this to happen. Any help on this would be much appreciated.
 
if {db.field} > .001 then
Round({db.field},3)
else
Round({db.field},2)
 
Try:

-int(-{table.field}/.01)*.01

-LB
 
the formula -int... worked perfectly.

Thanks a ton
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top