ObservableNumExt<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 ObservableNumExt extensionno setter - isInfinite → bool
-
Available on Observable<
True if the number is positive infinity or negative infinity; otherwise, false.T> , provided by the ObservableNumExt extensionno setter - isNaN → bool
-
Available on Observable<
True if the number is the double Not-a-Number value; otherwise, false.T> , provided by the ObservableNumExt extensionno setter - isNegative → bool
-
Available on Observable<
True if the number is negative; otherwise, false.T> , provided by the ObservableNumExt 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 ObservableNumExt extensionno setter
Methods
-
abs(
) → num -
Available on Observable<
Returns the absolute value of this num.T> , provided by the ObservableNumExt extension -
ceil(
) → int -
Available on Observable<
Returns the least integer no smaller thanT> , provided by the ObservableNumExt extensionthis
. -
ceilToDouble(
) → double -
Available on Observable<
Returns the least double integer value no smaller thanT> , provided by the ObservableNumExt extensionthis
. -
clamp(
num lowerLimit, num upperLimit) → num -
Available on Observable<
Returns this num clamped to be in the rangeT> , provided by the ObservableNumExt extensionlowerLimit
-upperLimit
. -
floor(
) → int -
Available on Observable<
Returns the greatest integer no greater thanT> , provided by the ObservableNumExt extensionthis
. -
floorToDouble(
) → double -
Available on Observable<
Returns the greatest double integer value no greater thanT> , provided by the ObservableNumExt extensionthis
. -
remainder(
num other) → num -
Available on Observable<
Returns the remainder of the truncating division ofT> , provided by the ObservableNumExt extensionthis
byother
. -
round(
) → int -
Available on Observable<
Returns the integer closest toT> , provided by the ObservableNumExt extensionthis
. -
roundToDouble(
) → double -
Available on Observable<
Returns the double integer value closest toT> , provided by the ObservableNumExt extensionthis
. -
toDouble(
) → double -
Available on Observable<
Return this num as a double.T> , provided by the ObservableNumExt extension -
toInt(
) → int -
Available on Observable<
Truncates this num to an integer and returns the result as an int. */T> , provided by the ObservableNumExt extension -
toStringAsExponential(
[int? fractionDigits]) → String -
Available on Observable<
Returns an exponential string-representation ofT> , provided by the ObservableNumExt extensionthis
. -
toStringAsFixed(
int fractionDigits) → String -
Available on Observable<
Returns a decimal-point string-representation ofT> , provided by the ObservableNumExt extensionthis
. -
toStringAsPrecision(
int precision) → String -
Available on Observable<
ConvertsT> , provided by the ObservableNumExt 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 ObservableNumExt 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 ObservableNumExt extensionthis
.
Operators
-
operator %(
num other) → num -
Available on Observable<
Euclidean modulo operator.T> , provided by the ObservableNumExt extension -
operator *(
num other) → num -
Available on Observable<
Multiplication operator.T> , provided by the ObservableNumExt extension -
operator /(
num other) → double -
Available on Observable<
Division operator.T> , provided by the ObservableNumExt extension -
operator <(
num other) → bool -
Available on Observable<
Relational less than operator.T> , provided by the ObservableNumExt extension -
operator <=(
num other) → bool -
Available on Observable<
Relational less than or equal operator.T> , provided by the ObservableNumExt extension -
operator >(
num other) → bool -
Available on Observable<
Relational greater than operator.T> , provided by the ObservableNumExt extension -
operator >=(
num other) → bool -
Available on Observable<
Relational greater than or equal operator.T> , provided by the ObservableNumExt extension -
operator unary-(
) → num -
Available on Observable<
Negate operator.T> , provided by the ObservableNumExt extension -
operator ~/(
num other) → int -
Available on Observable<
Truncating division operator.T> , provided by the ObservableNumExt extension