NumberExt extension

on

Properties

isNegative bool

Available on num?, provided by the NumberExt extension

isNegative: check if this is negative
no setter
isPositive bool

Available on num?, provided by the NumberExt extension

isPositive: Check if this is positive
no setter
isZero bool

Available on num?, provided by the NumberExt extension

isZero: check if this is 0
no setter
toBool bool

Available on num?, provided by the NumberExt extension

toBool: convert a string to bool (1 == true, 0 == false)
no setter

Methods

isInRange(num min, num max) bool

Available on num?, provided by the NumberExt extension

isInRange: Check if this is in range
toCurrencyString({int decimalPlaces = 2, String currencySymbol = '\$'}) String

Available on num?, provided by the NumberExt extension

toCurrencyString place a currencySymbol next to the number