bug fix Real time calculation in a form using JavaScript

Job ID: 33360775

Budget: $10 – $30 USD

i have a javascript that calculates in real time the total input when user insert digits.

but the problem is...
sometimes it gives me numbers to long. like
12.9999999

and sometimes it works perfectly depends on what digits you insert.
i need someone to limit it to two decimals.
it's a small bug.
i pay $15 to fix.

thanks
Related categories: PHP JavaScript CSS HTML jQuery / Prototype