ObjNumNullExt extension

on

Properties

isFinite bool?

Available on Obj<num?>, provided by the ObjNumNullExt extension

Whether this number is finite.
no setter
isInfinite bool?

Available on Obj<num?>, provided by the ObjNumNullExt extension

Whether this number is positive infinity or negative infinity.
no setter
isNaN bool?

Available on Obj<num?>, provided by the ObjNumNullExt extension

Whether this number is a Not-a-Number value.
no setter
isNegative bool?

Available on Obj<num?>, provided by the ObjNumNullExt extension

Whether this number is negative.
no setter
sign num?

Available on Obj<num?>, provided by the ObjNumNullExt extension

Negative one, zero or positive one depending on the sign and numerical value of this number.
no setter

Methods

abs() num?

Available on Obj<num?>, provided by the ObjNumNullExt extension

The absolute value of this number.
ceil() int?

Available on Obj<num?>, provided by the ObjNumNullExt extension

The least integer no smaller than this.
ceilToDouble() double?

Available on Obj<num?>, provided by the ObjNumNullExt extension

Returns the least double integer value no smaller than this.
clamp(num lowerLimit, num upperLimit) num?

Available on Obj<num?>, provided by the ObjNumNullExt extension

Returns this num clamped to be in the range lowerLimit-upperLimit.
compareTo(num other) int?

Available on Obj<num?>, provided by the ObjNumNullExt extension

Compares this to other.
floor() int?

Available on Obj<num?>, provided by the ObjNumNullExt extension

The greatest integer no greater than this number.
floorToDouble() double?

Available on Obj<num?>, provided by the ObjNumNullExt extension

Returns the greatest double integer value no greater than this.
remainder(num other) num?

Available on Obj<num?>, provided by the ObjNumNullExt extension

The remainder of the truncating division of this by other.
round() int?

Available on Obj<num?>, provided by the ObjNumNullExt extension

The integer closest to this number.
roundToDouble() double?

Available on Obj<num?>, provided by the ObjNumNullExt extension

The double integer value closest to this value.
toDouble() double?

Available on Obj<num?>, provided by the ObjNumNullExt extension

This number as a double.
toInt() int?

Available on Obj<num?>, provided by the ObjNumNullExt extension

Truncates this num to an integer and returns the result as an int.
toStringAsExponential([int? fractionDigits]) String?

Available on Obj<num?>, provided by the ObjNumNullExt extension

An exponential string-representation of this number.
toStringAsFixed(int fractionDigits) String?

Available on Obj<num?>, provided by the ObjNumNullExt extension

A decimal-point string-representation of this number.
toStringAsPrecision(int precision) String?

Available on Obj<num?>, provided by the ObjNumNullExt extension

A string representation with precision significant digits.
truncate() int?

Available on Obj<num?>, provided by the ObjNumNullExt extension

The integer obtained by discarding any fractional digits from this.
truncateToDouble() double?

Available on Obj<num?>, provided by the ObjNumNullExt extension

Returns the double integer value obtained by discarding any fractional digits from the double value of this.