XPathDouble class final

64-bit IEEE 754 float (xs:double and xs:float).

Inheritance

Constructors

XPathDouble(double value, [XPathType type = xsDouble])
Creates an xs:double (or xs:float type) value wrapping value.
const
XPathDouble.parse(String text, [XPathType type = xsDouble])
Parses text into an XPathDouble of optional type, throwing a FormatException if invalid.
factory

Properties

effectiveBooleanValue → bool
The effective boolean value (EBV) of this item.
no setteroverride
hashCode → int
The hash code for this object.
no setteroverride
isNumeric → bool
Whether this atomic value is numeric.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringValue → String
Canonical string representation of this item.
no setteroverride
type → XPathType
The XDM type of this item.
final
value → double
The underlying Dart value representation.
final

Methods

atomize() → XPathAtomic
Atomizes this item into an XPathAtomic value.
inherited
compareTo(XPathAtomic other) → int
Compares this object to another object.
override
idiv(XPathNumeric other) → XPathInteger
Returns the integer quotient of this divided by other.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBigInt() → BigInt
Converts this value to a Dart BigInt.
override
toDecimal() → XPathDecimal
Converts this value to an XPathDecimal.
override
toDouble() → double
Converts this value to a Dart double.
override
toString() → String
A string representation of this object.
inherited
toValue() → Object
Converts this item to a native Dart value.
inherited

Operators

operator %(XPathNumeric other) → XPathNumeric
Returns the remainder of this divided by other.
override
operator *(XPathNumeric other) → XPathNumeric
Returns the product of this and other.
override
operator +(XPathNumeric other) → XPathNumeric
Returns the sum of this and other.
override
operator -(XPathNumeric other) → XPathNumeric
Returns the difference of this and other.
override
operator /(XPathNumeric other) → XPathNumeric
Returns the quotient of this divided by other.
override
operator ==(Object other) → bool
The equality operator.
override
operator unary-() → XPathDouble
Returns the difference of this and other.
override

Static Methods

tryParse(String text, [XPathType type = xsDouble]) → XPathDouble?
Parses text into an XPathDouble of optional type, or returns null if invalid.

Constants

infinity → const XPathDouble
The canonical positive infinity (INF) value.
nan → const XPathDouble
The canonical NaN value.
negativeInfinity → const XPathDouble
The canonical negative infinity (-INF) value.
zero → const XPathDouble
The canonical positive zero (0.0) value.