NumExten extension

on

Methods

kadd(num b) double

Available on num?, provided by the NumExten extension

两个数相加(防止精度丢失)
kdivide(num b) double

Available on num?, provided by the NumExten extension

两个数相除(防止精度丢失)
kisEqual(num b) bool

Available on num?, provided by the NumExten extension

判断a是否等于b
kisGreaterOrEqual(num b) bool

Available on num?, provided by the NumExten extension

判断a是否大于等于b
kisGreaterThan(num b) bool

Available on num?, provided by the NumExten extension

判断a是否大于b
kisLessOrEqual(num b) bool

Available on num?, provided by the NumExten extension

判断a是否小于或者等于b
kisLessThan(num b) bool

Available on num?, provided by the NumExten extension

判断a是否小于b
kisZero() bool

Available on num?, provided by the NumExten extension

判断是否是否是0
kmulti(num b) double

Available on num?, provided by the NumExten extension

两个数相乘(防止精度丢失)
kremainder(num b) → Decimal

Available on num?, provided by the NumExten extension

余数
ksub(num b) double

Available on num?, provided by the NumExten extension

两个数相减(防止精度丢失)