npm

10 packages found

M
Q
P

Description

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

Keywords

Publisher

published 1.0.42 months ago
M
Q
P

Description

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

Keywords

Publisher

published 1.0.29 months ago
M
Q
P

Description

Converts a number into a string, keeping a specified number of decimals.

Keywords

Publisher

published 1.0.03 years ago
M
Q
P

Description

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

Keywords

Publisher

published 1.0.02 years ago
M
Q
P

Description

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

Keywords

Publisher

published 1.0.02 years ago
M
Q
P

Description

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

Keywords

Publisher

published 1.0.3a year ago
M
Q
P

Description

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

Keywords

Publisher

published 1.0.12 years ago
M
Q
P

Description

Converts a number into a string and returns the number by keeping a specified number of decimal after rounding to the nearest.

Keywords

Publisher

published 1.0.02 years ago
M
Q
P

Description

js toFixed

Keywords

Publisher

published 0.0.42 years ago
M
Q
P

Description

由于js中进行小数计算会有精度问题,此方法用于金额计算(保留小数点后两位小数,并进行四舍五入)

Keywords

Publisher

published 1.0.1a year ago