formated output

BlitzMax Forums/BlitzMax Beginners Area/formated output

OK, that code didn't work, so here's a tested Function...

Function FormatNumber:String(num:Float,places)
	Local output:String
	output=Int(num*(10^places))
	Return Left(output,Len(output)-places)+"."+Right(output,places)
End Function


Again it uses the old string handling functions, as I couldn't get it to work with the new methods.