0.0.1 • Published 1 year ago

decimal-flow v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

DecimalFlow

计算库,使用了decimal进行浮点计算

demo1

// should return 3 with 1+2
const temp = new DF(1).add(2).value

demo2

// should return 6 with 1+2+(1+2)
const temp = new DF(1)
    .add(2)
    .add(
      new DF(1)
      .add(2)
    ).valueOf()
0.0.1

1 year ago