Search results

22 packages found

This library can solve one well known problem with JavaScript Number arithmetic imprecise, when, for example, 3.3 * 3 becomes 9.899999999999999, ugly.

published version 1.0.4, 6 years ago43 dependents licensed under $MIT
26,193

Math.round with fixed, formats a number using fixed-point notation and returns a number.

published version 1.0.2, 7 years ago4 dependents licensed under $ISC
1,295

A useful number utils library

published version 1.3.6, 2 years ago7 dependents licensed under $ISC
709

Turns a number to a fixed string with a metric or abbreviation suffix

published version 1.1.0, 7 months ago0 dependents licensed under $MIT
355

toFixed with Math.round,fixed the bug of original toFixed function

published version 1.0.3, 7 years ago0 dependents licensed under $ISC
77

A small javascript library to convert value to fixed decimal points if necessary

published version 1.0.3, 5 years ago0 dependents licensed under $ISC
58

This library can solve one well known problem with JavaScript Number arithmetic imprecise, when, for example, 3.3 * 3 becomes 9.899999999999999, ugly.

published version 1.0.1, 3 years ago0 dependents licensed under $MIT
40

js toFixed

published version 1.0.2, 3 years ago1 dependents licensed under $ISC
27

四舍五入保留n位小数计算函数

published version 1.0.2, 5 years ago0 dependents licensed under $ISC
25

number的工具箱:round、toFixed纠正;负数千分符,数字转中文

published version 0.0.6, 2 years ago0 dependents licensed under $ISC
21

这是一个数字计算类,用于解决js浮点数运算精度丢失和大数运算的问题,封装了常用的加减乘除计算方法,还包括toFixed方法,实例支持链式调用计算方法,计算方法也可以在静态方法中调用。

published version 1.0.8, 3 months ago0 dependents
26

Use it when you want to perform integer and real number

published version 1.0.3, 3 years ago0 dependents licensed under $ISC
17

Pad a string (prefix or suffix)

published version 1.0.3, 4 days ago0 dependents licensed under $ISC
18

修复toFixed方法精度的问题 ( 10.215 => toFixed(2) => 10.21 ),Math.Round问题

published version 1.0.3, 3 years ago0 dependents licensed under $ISC
18

修正toFixed方法保留小数位的错误 To fix the error of the toFixed method not preserving decimal places

published version 1.0.2, 2 years ago0 dependents licensed under $ISC
11

Math.floor with fixed, formats a number using fixed-point notation and returns a number.

published version 1.0.0, 8 years ago0 dependents licensed under $ISC
12

Similar to .toFixed(), but can be ceil, floor or round (default)

published version 1.0.3, 8 months ago1 dependents licensed under $ISC
12

Math.ceil with fixed, formats a number using fixed-point notation and returns a number.

published version 1.0.0, 8 years ago0 dependents licensed under $ISC
12

修复toFixed四舍五入不准确问题

published version 1.0.0, 3 years ago0 dependents licensed under $MIT
9

A package for rounding numbers to an exact, minimum, or maximum number of decimal places.

published version 0.0.0, a year ago0 dependents licensed under $MIT
9