ObjNumNullExt extension
Properties
- isFinite → bool?
-
Available on Obj<
Whether this number is finite.num?> , provided by the ObjNumNullExt extensionno setter - isInfinite → bool?
-
Available on Obj<
Whether this number is positive infinity or negative infinity.num?> , provided by the ObjNumNullExt extensionno setter - isNaN → bool?
-
Available on Obj<
Whether this number is a Not-a-Number value.num?> , provided by the ObjNumNullExt extensionno setter - isNegative → bool?
-
Available on Obj<
Whether this number is negative.num?> , provided by the ObjNumNullExt extensionno setter - sign → num?
-
Available on Obj<
Negative one, zero or positive one depending on the sign and numerical value of this number.num?> , provided by the ObjNumNullExt extensionno setter
Methods
-
abs(
) → num? -
Available on Obj<
The absolute value of this number.num?> , provided by the ObjNumNullExt extension -
ceil(
) → int? -
Available on Obj<
The least integer no smaller thannum?> , provided by the ObjNumNullExt extensionthis
. -
ceilToDouble(
) → double? -
Available on Obj<
Returns the least double integer value no smaller thannum?> , provided by the ObjNumNullExt extensionthis
. -
clamp(
num lowerLimit, num upperLimit) → num? -
Available on Obj<
Returns this num clamped to be in the rangenum?> , provided by the ObjNumNullExt extensionlowerLimit
-upperLimit
. -
compareTo(
num other) → int? -
Available on Obj<
Compares this tonum?> , provided by the ObjNumNullExt extensionother
. -
floor(
) → int? -
Available on Obj<
The greatest integer no greater than this number.num?> , provided by the ObjNumNullExt extension -
floorToDouble(
) → double? -
Available on Obj<
Returns the greatest double integer value no greater thannum?> , provided by the ObjNumNullExt extensionthis
. -
remainder(
num other) → num? -
Available on Obj<
The remainder of the truncating division ofnum?> , provided by the ObjNumNullExt extensionthis
byother
. -
round(
) → int? -
Available on Obj<
The integer closest to this number.num?> , provided by the ObjNumNullExt extension -
roundToDouble(
) → double? -
Available on Obj<
The double integer value closest to this value.num?> , provided by the ObjNumNullExt extension -
toDouble(
) → double? -
Available on Obj<
This number as a double.num?> , provided by the ObjNumNullExt extension -
toInt(
) → int? -
Available on Obj<
Truncates this num to an integer and returns the result as an int.num?> , provided by the ObjNumNullExt extension -
toStringAsExponential(
[int? fractionDigits]) → String? -
Available on Obj<
An exponential string-representation of this number.num?> , provided by the ObjNumNullExt extension -
toStringAsFixed(
int fractionDigits) → String? -
Available on Obj<
A decimal-point string-representation of this number.num?> , provided by the ObjNumNullExt extension -
toStringAsPrecision(
int precision) → String? -
Available on Obj<
A string representation withnum?> , provided by the ObjNumNullExt extensionprecision
significant digits. -
truncate(
) → int? -
Available on Obj<
The integer obtained by discarding any fractional digits fromnum?> , provided by the ObjNumNullExt extensionthis
. -
truncateToDouble(
) → double? -
Available on Obj<
Returns the double integer value obtained by discarding any fractional digits from the double value ofnum?> , provided by the ObjNumNullExt extensionthis
.