Rounding Function

Monkey Targets Forums/iOS/Rounding Function

wmaass(Posted 2012) [#1]
I have this function which works for most targets but not iOS:

Function Round:Float(N:Float, DecimalPlaces:Int)
	Return Float(Int(N * Pow(10.0,DecimalPlaces))) / Pow(10.0,DecimalPlaces)
End Function


Any idea how to get this to work on iOS?


Tri|Ga|De(Posted 2012) [#2]
I would also like to know this.