RxnNumExt<T extends num> extension
- on
-
- Rx<
T?>
- Rx<
Properties
- isFinite → bool?
-
Available on Rx<
True if the number is finite; otherwise, false.T?> , provided by the RxnNumExt extensionno setter - isInfinite → bool?
-
Available on Rx<
True if the number is positive infinity or negative infinity; otherwise, false.T?> , provided by the RxnNumExt extensionno setter - isNaN → bool?
-
Available on Rx<
True if the number is the double Not-a-Number value; otherwise, false.T?> , provided by the RxnNumExt extensionno setter - isNegative → bool?
-
Available on Rx<
True if the number is negative; otherwise, false.T?> , provided by the RxnNumExt extensionno setter - sign → num?
-
Available on Rx<
Returns minus one, zero or plus one depending on the sign and numerical value of the number.T?> , provided by the RxnNumExt extensionno setter
Methods
-
abs(
) → num? -
Available on Rx<
Returns the absolute value of this num.T?> , provided by the RxnNumExt extension -
ceil(
) → int? -
Available on Rx<
Returns the least integer no smaller thanT?> , provided by the RxnNumExt extensionthis
. -
ceilToDouble(
) → double? -
Available on Rx<
Returns the least double integer value no smaller thanT?> , provided by the RxnNumExt extensionthis
. -
clamp(
num lowerLimit, num upperLimit) → num? -
Available on Rx<
Returns this num clamped to be in the rangeT?> , provided by the RxnNumExt extensionlowerLimit
-upperLimit
. -
floor(
) → int? -
Available on Rx<
Returns the greatest integer no greater thanT?> , provided by the RxnNumExt extensionthis
. -
floorToDouble(
) → double? -
Available on Rx<
Returns the greatest double integer value no greater thanT?> , provided by the RxnNumExt extensionthis
. -
remainder(
num other) → num? -
Available on Rx<
Returns the remainder of the truncating division ofT?> , provided by the RxnNumExt extensionthis
byother
. -
round(
) → int? -
Available on Rx<
Returns the integer closest toT?> , provided by the RxnNumExt extensionthis
. -
roundToDouble(
) → double? -
Available on Rx<
Returns the double integer value closest toT?> , provided by the RxnNumExt extensionthis
. -
toDouble(
) → double? -
Available on Rx<
Return this num as a double.T?> , provided by the RxnNumExt extension -
toInt(
) → int? -
Available on Rx<
Truncates this num to an integer and returns the result as an int. */T?> , provided by the RxnNumExt extension -
toStringAsExponential(
[int? fractionDigits]) → String? -
Available on Rx<
Returns an exponential string-representation ofT?> , provided by the RxnNumExt extensionthis
. -
toStringAsFixed(
int fractionDigits) → String? -
Available on Rx<
Returns a decimal-point string-representation ofT?> , provided by the RxnNumExt extensionthis
. -
toStringAsPrecision(
int precision) → String? -
Available on Rx<
ConvertsT?> , provided by the RxnNumExt extensionthis
to a double and returns a string representation with exactlyprecision
significant digits. -
truncate(
) → int? -
Available on Rx<
Returns the integer obtained by discarding any fractional digits fromT?> , provided by the RxnNumExt extensionthis
. -
truncateToDouble(
) → double? -
Available on Rx<
Returns the double integer value obtained by discarding any fractional digits from the double value ofT?> , provided by the RxnNumExt extensionthis
.
Operators
-
operator %(
num other) → num? - Euclidean modulo operator.
-
operator *(
num other) → num? - Multiplication operator.
-
operator /(
num other) → double? - Division operator.
-
operator <(
num other) → bool? - Relational less than operator.
-
operator <=(
num other) → bool? - Relational less than or equal operator.
-
operator >(
num other) → bool? - Relational greater than operator.
-
operator >=(
num other) → bool? - Relational greater than or equal operator.
-
operator unary-(
) → num? - Negate operator.
-
operator ~/(
num other) → int? - Truncating division operator.