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

Rounding 1

Status
Not open for further replies.

ncopeland

IS-IT--Management
Mar 12, 2002
88
GB
Is there a function within crystal that will round a number up if it is over .00
 
There are several ways to do this but not a specific function..

If the number will always be positive:

-int(-{table.field})

will always round up..

Lisa

 
You could write a formula like:

if {table.field} - int({table.field}) > 0
then
{table.field}+1
else
{table.field}

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top