parseFloat
-
We have parseInt could we also get parseFloat?
-
There you go :)
inline function parseFloat(value) { local funky = Engine.getMilliSecondsForSamples(value); return Engine.getSamplesForMilliSeconds(funky); }
-
-
Ah, that's just the print function. If there are no digits, it will print an integer. If you need a certain amount of digits, use
Engine.doubleToString()
:Console.print(Engine.doubleToString(2.0, 2));