This has not been performance tested.
npm i --save expected-round
const expectedRound = require('expected-round')
expectedRound.round10(1.005, -2) // Rounds 1.005 to 2 decimal places
Plain JS vs Expected-Round comparison.
Math.round(1.005 * 100) / 100 // outputs 1
round10(1.005, -2) // outputs 1.01