We can also handle it in this way:
- Code: Select all
var multiplier = Math.pow(10, places);
return (Math.round((value * multiplier).toFixed(places)) / multiplier);
Not tested for all cases though..
Thanks,
var multiplier = Math.pow(10, places);
return (Math.round((value * multiplier).toFixed(places)) / multiplier);
Return to Discuss possible Issues and Bugs
Users browsing this forum: No registered users and 7 guests