Link to home
Start Free TrialLog in
Avatar of Robert Granlund
Robert GranlundFlag for United States of America

asked on

jQuery Rounding

Does the following round up?

<script>
var taxSum = 9.4558;
parseFloat(taxSum).toFixed(2)
</script>

Open in new window


Would that print out 9.4g ?
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No points, just to show you a demo http://jsbin.com/tovalavoko/edit?js,console,output