Matt Horn wrote:
well, adding the following method works (but not with the NumberFormatter):

...
return data.Expense + newline + round(percentValue,2) + "%";
...


function round( num, precision ) {

[snip]

Here's another version:

function round(num:Number, precision:Number):Number
{
var a:Number = 1;
while (precision-- > 0) a /= 10;
return Math.floor(num / a) * a;
}

Manish




Reply via email to