NumExten extension

on

Methods

add(num b) double

Available on num?, provided by the NumExten extension

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

Available on num?, provided by the NumExten extension

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

Available on num?, provided by the NumExten extension

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

Available on num?, provided by the NumExten extension

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

Available on num?, provided by the NumExten extension

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

Available on num?, provided by the NumExten extension

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

Available on num?, provided by the NumExten extension

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

Available on num?, provided by the NumExten extension

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

Available on num?, provided by the NumExten extension

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

Available on num?, provided by the NumExten extension

余数
sub(num b) double

Available on num?, provided by the NumExten extension

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