Search results
36 packages found
A package for rounding numbers to an exact, minimum, or maximum number of decimal places.
Round a double-precision floating-point number to the nearest multiple of 10^n.
This library can solve one well known problem with JavaScript Number arithmetic imprecise, when, for example, 3.3 * 3 becomes 9.899999999999999, ugly.
toFixed with Math.round,fixed the bug of original toFixed function
Turns a number to a fixed string with a metric or abbreviation suffix
Round a numeric value to the nearest multiple of 10^n toward positive infinity.
Round a double-precision floating-point number to the nearest multiple of 10^n toward negative infinity.
Round a numeric value to the nearest multiple of 10^n toward zero.
Round each component of a double-precision complex floating-point number to the nearest multiple of 10^n toward positive infinity.
Round a numeric value to the nearest multiple of b^n on a linear scale.
Round each component of a double-precision complex floating-point number to the nearest multiple of 10^n.
- stdlib
- stdmath
- mathematics
- math
- math.round
- round
- roundn
- cround
- integer
- nearest
- value
- fix
- tofixed
- complex
- View more
Round a numeric value to the nearest multiple of b^n toward zero.
Round each component of a double-precision complex floating-point number to the nearest multiple of 10^n toward negative infinity.
This library can solve one well known problem with JavaScript Number arithmetic imprecise, when, for example, 3.3 * 3 becomes 9.899999999999999, ugly.
修正toFixed方法保留小数位的错误 To fix the error of the toFixed method not preserving decimal places
Fix two decimal cases in currency value without worrying about wrong math rounds.
toFixed rounding fix polyfill