round-to

Round a number to a specific number of decimal places: 1.234 → 1.2

MIT License

Downloads
179K
Stars
155
Committers
8

Bot releases are hidden (Show)

round-to - Latest Release

Published by sindresorhus almost 3 years ago

Breaking

  • Require Node.js 12.20 2add194
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/round-to/compare/v5.0.0...v6.0.0

round-to -

Published by sindresorhus almost 4 years ago

Breaking

  • Require Node.js 10 a0899ed
  • Use undefined instead of null (#19) 1f1e5fc

Improvements

  • Fix some floating-point roundoff errors (#21) de2966e

https://github.com/sindresorhus/round-to/compare/v4.1.0...v5.0.0

round-to -

Published by sindresorhus almost 5 years ago

  • Support Infinity as precision (#16) dde468c

https://github.com/sindresorhus/round-to/compare/v4.0.0...v4.1.0

round-to -

Published by sindresorhus over 5 years ago

Breaking:

  • Require Node.js 8 (#15) 0c28c8d

Enhancements:

  • Add TypeScript definition (#15) 0c28c8d

https://github.com/sindresorhus/round-to/compare/v3.0.0...v4.0.0