Search results
22 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
This library can solve one well known problem with JavaScript Number arithmetic imprecise, when, for example, 3.3 * 3 becomes 9.899999999999999, ugly.
Math.round with fixed, formats a number using fixed-point notation and returns a number.
A useful number utils library
Turns a number to a fixed string with a metric or abbreviation suffix
toFixed with Math.round,fixed the bug of original toFixed function
A small javascript library to convert value to fixed decimal points if necessary
This library can solve one well known problem with JavaScript Number arithmetic imprecise, when, for example, 3.3 * 3 becomes 9.899999999999999, ugly.
js toFixed
四舍五入保留n位小数计算函数
number的工具箱:round、toFixed纠正;负数千分符,数字转中文
这是一个数字计算类,用于解决js浮点数运算精度丢失和大数运算的问题,封装了常用的加减乘除计算方法,还包括toFixed方法,实例支持链式调用计算方法,计算方法也可以在静态方法中调用。
Use it when you want to perform integer and real number
Pad a string (prefix or suffix)
修复toFixed方法精度的问题 ( 10.215 => toFixed(2) => 10.21 ),Math.Round问题
修正toFixed方法保留小数位的错误 To fix the error of the toFixed method not preserving decimal places
Math.floor with fixed, formats a number using fixed-point notation and returns a number.
Similar to .toFixed(), but can be ceil, floor or round (default)
Math.ceil with fixed, formats a number using fixed-point notation and returns a number.
修复toFixed四舍五入不准确问题
A package for rounding numbers to an exact, minimum, or maximum number of decimal places.