is there an easy way to specify how many digits after the decimal flash will return in a variable. I know you can do it in a sort of complicated way like this:
[AS]
//say i want 3 decimal places out of number
number = 100.12345
number *= 1000;
Math.round(number);
number /= 1000;
[/AS]
but is there a better way, something like
Math.roundPlaces(number, 3);
?
thanks