Basic rounding function

BlitzMax Forums/BlitzMax Beginners Area/Basic rounding function

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm afraid BMax already has Ceil#() and Floor#() commands for rounding...
Print Int(Ceil(5.00001))
Print Int(Ceil(5.0000))
Print Int(5.00001) ' Same as int(Floor(5.00001))