JSPM

Found 17 results for tofixed

tofixed

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

  • v1.0.0
  • 55.42
  • Published

calc-easy

一个专注于易用性的、精度准确的基本运算库

  • v1.1.1
  • 30.32
  • Published

@stdlib/math-base-special-floorn

Round a double-precision floating-point number to the nearest multiple of 10^n toward negative infinity.

  • v0.2.3
  • 28.86
  • Published

@stdlib/math-base-special-cceiln

Round each component of a double-precision complex floating-point number to the nearest multiple of 10^n toward positive infinity.

  • v0.2.3
  • 28.71
  • Published

@stdlib/math-base-special-croundn

Round each component of a double-precision complex floating-point number to the nearest multiple of 10^n.

  • v0.2.3
  • 25.33
  • Published

@stdlib/math-base-special-cfloorn

Round each component of a double-precision complex floating-point number to the nearest multiple of 10^n toward negative infinity.

  • v0.2.3
  • 24.44
  • Published

vue-tofixed2

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

    • v1.0.1
    • 19.52
    • Published

    tn-numpad

    Leading zeroes to a number

      • v2.1.2
      • 18.16
      • Published

      @stdlib/math-base-special-floornf

      Round a single-precision floating-point number to the nearest multiple of 10^n toward negative infinity.

      • v0.1.1
      • 14.12
      • Published

      to-fixed-round

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

      • v1.0.0
      • 10.46
      • Published

      to-fixed-for-real

      Fix two decimal cases in currency value without worrying about wrong math rounds.

        • v1.0.3
        • 6.25
        • Published