JSPM

Found 22 results for toFixed

mongoose-float

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

  • v1.0.4
  • 71.47
  • Published

fixed-round

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

  • v1.0.2
  • 54.86
  • Published

number-suffix

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

  • v1.1.0
  • 43.66
  • Published

number-magic

A useful number utils library

  • v1.3.6
  • 42.38
  • Published

num-tofixed

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

  • v1.0.3
  • 26.75
  • Published

strnumber

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

  • v1.0.8
  • 22.72
  • Published

round-to-decimal

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

  • v1.0.3
  • 18.80
  • Published

number-core

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

    • v0.0.6
    • 14.79
    • Published

    fix-num

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

      • v1.0.2
      • 14.38
      • Published

      fixed-floor

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

      • v1.0.0
      • 8.70
      • Published

      number-correct

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

        • v1.0.3
        • 7.45
        • Published

        fixed-ceil

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

        • v1.0.0
        • 7.45
        • Published

        pad-text

        Pad a string (prefix or suffix)

          • v1.0.3
          • 6.36
          • Published

          to-fixed-val

          this is to fixed function

          • v1.0.1
          • 4.70
          • Published

          @waape/mongoose-float

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

          • v1.0.1
          • 4.70
          • Published

          naive-tofixed

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

          • v1.0.2
          • 3.20
          • Published

          tofixed-accurate

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

          • v1.0.0
          • 3.00
          • Published

          round-options

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

          • v0.0.0
          • 2.98
          • Published

          extendnumber

          Use it when you want to perform integer and real number

          • v1.0.3
          • 2.96
          • Published

          y2fixed

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

            • v1.0.3
            • 0.00
            • Published