Search npm for packages to use with Deno
Add them to your projects with a simple command that will already feel familar.
@stdlib/math-base-special-roundn
Round a double-precision floating-point number to the nearest multiple of 10^n.
tofixed
Converts a number into a string, keeping a specified number of decimals.
@stdlib/math-base-special-ceiln
Round a numeric value to the nearest multiple of 10^n toward positive infinity.
@stdlib/math-base-special-truncn
Round a numeric value to the nearest multiple of 10^n toward zero.
@stdlib/math-base-special-floorn
Round a double-precision floating-point number to the nearest multiple of 10^n toward negative infinity.
@stdlib/math-base-special-roundb
Round a numeric value to the nearest multiple of b^n on a linear scale.
@stdlib/math-base-special-truncb
Round a numeric value to the nearest multiple of b^n toward zero.
@stdlib/math-base-special-cceiln
Round each component of a double-precision complex floating-point number to the nearest multiple of 10^n toward positive infinity.
calc-easy
一个专注于易用性的、精度准确的基本运算库
tn-numpad
Leading zeroes to a number
@stdlib/math-base-special-cfloorn
Round each component of a double-precision complex floating-point number to the nearest multiple of 10^n toward negative infinity.
@stdlib/math-base-special-croundn
Round each component of a double-precision complex floating-point number to the nearest multiple of 10^n.
tofixed-round-fix
toFixed rounding fix polyfill
to-fixed-round
Converts a number into a string and returns the number by keeping a specified number of decimal after rounding to the nearest.
vue-tofixed2
由于js中进行小数计算会有精度问题,此方法用于金额计算(保留小数点后两位小数,并进行四舍五入)
to-fixed-for-real
Fix two decimal cases in currency value without worrying about wrong math rounds.