The standard built-in Math object is being modified, which some commentators suggest is bad.
The rounding function was copied verbatim from Mozilla reference and includes some other unneeded functions.
At the bottom of the reference there is a simpler function called PHP-Like rounding Method that could be tested in the mainline to eliminate need for a separate module at this time. Note the opposite use of the minus sign in precision will require rewriting the temperature convert functions to make -dp become dp.
There are several problems with round10.js:
At the bottom of the reference there is a simpler function called PHP-Like rounding Method that could be tested in the mainline to eliminate need for a separate module at this time. Note the opposite use of the minus sign in precision will require rewriting the temperature convert functions to make
-dp
becomedp
.