Format fractional digits in a number
8
Format fractional digits in a numbe
Number.prototype.toFixed = function(fractionDigits)
{
var m = Math.pow(10,fractionDigits);
return Math.round(this*m,0)/m;
}



me
jamesmcm
Can
Kelmi
ysg
dannymo2
chorny
wallie
Hackdemian
impomatic
dannyboy
sundaramkumar
mattrmiller
Pio
i_kenneth
ASmith
ctiggerf
sehrgut
bertheymans
SCoon
(12.3456789).toFixed(0);
this will give the result 12
Regards,
Kumar S
GuyFromChennai.com