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

Rounding-Up (Ceiling Function) help needed.

Status
Not open for further replies.

DallasAggie

Programmer
Oct 24, 2002
98
US
Hello.

I am trying to round a number up from lets say 1.1 to 2, which is the ceiling. Does anyone know how to do this?

I've tried this:

If remainder({@sum_of_fears},1) > 0 then
truncate({@sum_of_fears}) + 1 else
{@sum_of_fears}


This would typically work, but I am trying to use the function inside of a crosstab, so my results always get jacked! :-|

Any advice would be greatly appreciated.

-DallasAggie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top