# NumUtil class Null safety

another Fairy

``````# https://github.com/dart-lang/convert
decimal: ">=1.0.0 <3.0.0"
``````

NumUtil()

## Properties

hashCode int
The hash code for this object. [...]
runtimeType Type
A representation of the runtime type of the object.

## Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString()
A string representation of this object. [...]
inherited

## Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

## Static Methods

divide(num? a, num b)

divideDec(num? a, num b)

divideDecStr( a, )
format( value, {int fractionDigits = 0}) num

formatStr( value, {int fractionDigits = 0})

greaterOrEqual(num a, num b) bool
`a`是否大于或者等于`b`
greaterOrEqualDecStr(String a, ) bool
`a`是否大于或者等于`b`
greaterThan(num a, num b) bool
`a`是否大于`b`
greaterThanDecStr(String a, ) bool
`a`是否大于`b`
isZero(num? value) bool

lessThan(num a, num b) bool
`a`是否小于`b`
lessThanDecStr(String a, ) bool
`a`是否小于`b`
lessThanOrEqual(num a, num b) bool
`a`是否小于或者等于`b`
lessThanOrEqualDecStr(String a, ) bool
`a`是否小于或者等于`b`
multiply(num? a, num? b)

multiplyDec(num? a, num? b)

multiplyDecStr( a, b)
parse( valueStr, {int fractionDigits = 0}) num

parseDouble( valueStr, { defValue})

parseInt( valueStr, {int? defValue}) int

remainder(num a, num b)

remainderDecStr(String a, )

subtract(num? a, num? b)

subtractDec(num? a, num? b)

subtractDecStr( a, b)
tryParse( numStr, {int fractionDigits = 0}) num