What the best link for a good mono documentation and how do you best do a type conversion in Javascript? Things like: Float → Int, Int → Float, String → Int/Float, …
Thanks,
taumel
What the best link for a good mono documentation and how do you best do a type conversion in Javascript? Things like: Float → Int, Int → Float, String → Int/Float, …
Thanks,
taumel
(Click on “Convert Members near the top”).
I believe JS may also have method like parseInt, parseFloat, parseString…
Thanks i’ll look into that. A parseX is mostly just for a string conversion.
You don’t even really have to do anything for Float → Int and vice versa.
var foo : float = 5.5;
var bar : int = foo;
–Eric
Well, if you have a formula which you feed with int variables and need a float precision due to divisions then it’s quite handy…but i found it, although this documentation isn’t a nice one.