Better Int()?

BlitzPlus Forums/BlitzPlus Programming/Better Int()?

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 not sure of any "Quick way" but this is what I came up with, adjust as needed.

Function MyRounding%(Value#)

	Places#=(Value-Floor(Value))
	If Places>0.5
		Return Ceil(Value)
	Else
		Return Floor(Value)
	EndIf
	
End Function