NumUtilsExtension extension

on

Properties

isNullOrZero bool

Available on num?, provided by the NumUtilsExtension extension

是否为空或0
no setter
isNumNumeric bool

Available on num?, provided by the NumUtilsExtension extension

判断是否为数字类型
no setter
isNumTrue bool

Available on num?, provided by the NumUtilsExtension extension

判断字符标识是否true(eg. true or 1)
no setter
toNumDouble double

Available on num?, provided by the NumUtilsExtension extension

转为double类型
no setter
toNumInt int

Available on num?, provided by the NumUtilsExtension extension

转为int类型
no setter

Methods

add(num number) num

Available on num?, provided by the NumUtilsExtension extension

加数
format({required int position, bool isCrop = false}) String

Available on num?, provided by the NumUtilsExtension extension

取n位小数,不足补位 position 要保留的位数 isCrop true 直接裁剪 false 四舍五入
reduce(num reduction) num

Available on num?, provided by the NumUtilsExtension extension

减数