ObservableNumExt<T extends num> extension

on

Properties

isFinite bool

Available on Observable<T>, provided by the ObservableNumExt extension

True if the number is finite; otherwise, false.
no setter
isInfinite bool

Available on Observable<T>, provided by the ObservableNumExt extension

True if the number is positive infinity or negative infinity; otherwise, false.
no setter
isNaN bool

Available on Observable<T>, provided by the ObservableNumExt extension

True if the number is the double Not-a-Number value; otherwise, false.
no setter
isNegative bool

Available on Observable<T>, provided by the ObservableNumExt extension

True if the number is negative; otherwise, false.
no setter
sign num

Available on Observable<T>, provided by the ObservableNumExt extension

Returns minus one, zero or plus one depending on the sign and numerical value of the number.
no setter

Methods

abs() num

Available on Observable<T>, provided by the ObservableNumExt extension

Returns the absolute value of this num.
ceil() int

Available on Observable<T>, provided by the ObservableNumExt extension

Returns the least integer no smaller than this.
ceilToDouble() double

Available on Observable<T>, provided by the ObservableNumExt extension

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

Available on Observable<T>, provided by the ObservableNumExt extension

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

Available on Observable<T>, provided by the ObservableNumExt extension

Returns the greatest integer no greater than this.
floorToDouble() double

Available on Observable<T>, provided by the ObservableNumExt extension

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

Available on Observable<T>, provided by the ObservableNumExt extension

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

Available on Observable<T>, provided by the ObservableNumExt extension

Returns the integer closest to this.
roundToDouble() double

Available on Observable<T>, provided by the ObservableNumExt extension

Returns the double integer value closest to this.
toDouble() double

Available on Observable<T>, provided by the ObservableNumExt extension

Return this num as a double.
toInt() int

Available on Observable<T>, provided by the ObservableNumExt extension

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

Available on Observable<T>, provided by the ObservableNumExt extension

Returns an exponential string-representation of this.
toStringAsFixed(int fractionDigits) String

Available on Observable<T>, provided by the ObservableNumExt extension

Returns a decimal-point string-representation of this.
toStringAsPrecision(int precision) String

Available on Observable<T>, provided by the ObservableNumExt extension

Converts this to a double and returns a string representation with exactly precision significant digits.
truncate() int

Available on Observable<T>, provided by the ObservableNumExt extension

Returns the integer obtained by discarding any fractional digits from this.
truncateToDouble() double

Available on Observable<T>, provided by the ObservableNumExt extension

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

Operators

operator %(num other) num

Available on Observable<T>, provided by the ObservableNumExt extension

Euclidean modulo operator.
operator *(num other) num

Available on Observable<T>, provided by the ObservableNumExt extension

Multiplication operator.
operator /(num other) double

Available on Observable<T>, provided by the ObservableNumExt extension

Division operator.
operator <(num other) bool

Available on Observable<T>, provided by the ObservableNumExt extension

Relational less than operator.
operator <=(num other) bool

Available on Observable<T>, provided by the ObservableNumExt extension

Relational less than or equal operator.
operator >(num other) bool

Available on Observable<T>, provided by the ObservableNumExt extension

Relational greater than operator.
operator >=(num other) bool

Available on Observable<T>, provided by the ObservableNumExt extension

Relational greater than or equal operator.
operator unary-() num

Available on Observable<T>, provided by the ObservableNumExt extension

Negate operator.
operator ~/(num other) int

Available on Observable<T>, provided by the ObservableNumExt extension

Truncating division operator.