Search
@stdlib/math-base-special-roundn
Round a double-precision floating-point number to the nearest multiple of 10^n.
v0.2.2 URL:
https://unpkg.com/@stdlib/math-base-special-roundn@0.2.2/lib/index.js
Open
Browse Files
stdlib
stdmath
mathematics
math
math.round
round
roundn
fix
tofixed
integer
nearest
number
@stdlib/math-base-special-floorn
Round a double-precision floating-point number to the nearest multiple of 10^n toward negative infinity.
v0.2.2 URL:
https://unpkg.com/@stdlib/math-base-special-floorn@0.2.2/lib/index.js
Open
Browse Files
stdlib
stdmath
mathematics
math
math.floor
floor
floorn
round
fix
tofixed
integer
nearest
number
@stdlib/math-base-special-ceiln
Round a numeric value to the nearest multiple of 10^n toward positive infinity.
v0.2.2 URL:
https://unpkg.com/@stdlib/math-base-special-ceiln@0.2.2/lib/index.js
Open
Browse Files
stdlib
stdmath
mathematics
math
math.ceil
ceil
ceiln
round
fix
tofixed
integer
nearest
number
y2fixed
Similar to .toFixed(), but can be ceil, floor or round (default)
v1.0.3 URL:
https://unpkg.com/y2fixed@1.0.3/index.js
Open
Browse Files
number
toFixed
ceil
floor
round
decimal
precision
@stdlib/math-base-special-truncn
Round a numeric value to the nearest multiple of 10^n toward zero.
v0.3.0 URL:
https://unpkg.com/@stdlib/math-base-special-truncn@0.3.0/lib/index.js
Open
Browse Files
stdlib
stdmath
mathematics
math
math.trunc
truncate
trunc
truncn
round
fix
tofixed
integer
nearest
number