Javascript FAQ
Float precision
Solution: Strip
1 | function strip(number) { |
Solution: Decimal.js
- The
decimal.js
package is 283kb at the time of writing. Sodecimal.js
is not appropriate for frontend.
Javascript FAQ
1 | function strip(number) { |
decimal.js
package is 283kb at the time of writing. So decimal.js
is not appropriate for frontend.Javascript FAQ