NumUtilsExtension extension
- on
-
- num?
Properties
- isNullOrZero → bool
-
Available on num?, provided by the NumUtilsExtension extension
是否为空或0no 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
减数