Actionscript Round and keep decimals function Published on March 7, 2007 [as]function formatDecimals2 (num, digits) { if (num < 0 ) { num = 0; } if (digits