The default number of decimal places is 2 but can be set to any number between 0 and 18. Selecting the dollars and cents option overrides the number of decimal places if set to anything other than 2. This example demonstrates the use of a JavaScript rounding routine. You are welcome to use the code.
For More Calculators, Converters and Tables