Search results
36 packages found
A useful number utils library
Converts a number into a string, keeping a specified number of decimals.
Math.round with fixed, formats a number using fixed-point notation and returns a number.
number的工具箱:round、toFixed纠正;负数千分符,数字转中文
修复toFixed方法精度的问题 ( 10.215 => toFixed(2) => 10.21 ),Math.Round问题
Math.floor with fixed, formats a number using fixed-point notation and returns a number.
Math.ceil with fixed, formats a number using fixed-point notation and returns a number.
一个专注于易用性的、精度准确的基本运算库
A small javascript library to convert value to fixed decimal points if necessary
Pad a string (prefix or suffix)
Converts a number into a string and returns the number by keeping a specified number of decimal after rounding to the nearest.
Use it when you want to perform integer and real number
由于js中进行小数计算会有精度问题,此方法用于金额计算(保留小数点后两位小数,并进行四舍五入)