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