XPathDouble class final
64-bit IEEE 754 float (xs:double and xs:float).
- Inheritance
-
- Object
- XPathAtomic
- XPathNumeric
- XPathDouble
Constructors
- XPathDouble(double value, [XPathType type = xsDouble])
-
Creates an
xs:double(orxs:floattype) value wrappingvalue.const - XPathDouble.parse(String text, [XPathType type = xsDouble])
-
Parses
textinto an XPathDouble of optionaltype, 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
thisdivided byother.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
thisdivided byother.override -
operator *(
XPathNumeric other) → XPathNumeric -
Returns the product of
thisandother.override -
operator +(
XPathNumeric other) → XPathNumeric -
Returns the sum of
thisandother.override -
operator -(
XPathNumeric other) → XPathNumeric -
Returns the difference of
thisandother.override -
operator /(
XPathNumeric other) → XPathNumeric -
Returns the quotient of
thisdivided byother.override -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator unary-(
) → XPathDouble -
Returns the difference of
thisandother.override
Static Methods
-
tryParse(
String text, [XPathType type = xsDouble]) → XPathDouble? -
Parses
textinto an XPathDouble of optionaltype, or returnsnullif invalid.
Constants
- infinity → const XPathDouble
-
The canonical positive infinity (
INF) value. - nan → const XPathDouble
-
The canonical
NaNvalue. - negativeInfinity → const XPathDouble
-
The canonical negative infinity (
-INF) value. - zero → const XPathDouble
-
The canonical positive zero (
0.0) value.