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 off a number to the next highest integer 1

Status
Not open for further replies.

sikar

Programmer
Jun 4, 2003
15
US
In my report i need to round off a number to the next highest integer.How can i achieve this?

Thanks
Sikar
 
Local NumberVar RoundUp := 47865.455;
If Int(RoundUp)/2 = RoundUp/2 then RoundUp else Truncate(Roundup) + 1;

Replace the item in bold with your field...

Reebo
UK

"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
- Albert Einstein (1879-1955)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top