Flash will not retain zeros after the last significant digit. Otherwise 1 would be 1.00000000... If you want to display the zero at the end you can use Robert's script but that returns a string so you have to remember to convert the result to a number before trying to do any more mathematical operations with it:
ActionScript Code:
var1 = 123.24;
var2 = 345.56;
display = Math.formatDecimals(var1+var2, 2);
var3 = Number(display);
trace (display);
trace (var3);
Here you can use var3 for math operations (like addition, subtraction, etc) but you can't use display, as it is a string, for display purposes only.
__________________
Cheers
Jesse Stratford
ActionScript.org Cofounder
Please
don't email or PM me Flash questions, that's what the Forums are for!
Please don't rely on me reading my PMs either. Email me about important stuff.