I am creating a script for calculating an order total. There are certain variables that can change the price and therefore some long-digit decimals will occur.
Is toFixed() precise enough to round these numbers and always get the same result?
Edit: The solution I came up with is to use this:
Number.prototype.toCurrency = function(){
    return Math.round(this*100)/100;
}
Is this sufficient for consistency?
 
    