Javascript: parseFloat(): Rounding

wxdqz

New Member
Hi!
How would I restrict Javascript to only 2 digits after decimal point.
e.g.
alert( "2544.56 + 1991 + 480 = " + 2544.56 + 1991 + 480 ) ;

The above line gives me result : 2544.561991480

How would I get only : 2544.56

I tried parseFloat(), eval().

Thanks,
 
Back
Top