Rounding

BlitzMax Forums/BlitzMax Beginners Area/Rounding

well... for the lazy here is some code that'll do it
Function Round(number:Double)
	dPart:Double = number-Int(number)
	If dPart>=0.5
		Return Int(number)+1
	Else
		Return Int(number)
	EndIf
End Function