XPathDecimal class final

Arbitrary-precision decimal (xs:decimal).

Inheritance

Constructors

XPathDecimal(BigInt unscaled, int scale)
Creates a normalized xs:decimal from unscaled and scale.
factory
XPathDecimal.fromBigInt(BigInt val)
Creates an xs:decimal from a Dart BigInt.
factory
XPathDecimal.fromInt(int val)
Creates an xs:decimal from a Dart int.
factory
XPathDecimal.fromNum(num val)
Creates an xs:decimal from a Dart num.
factory
XPathDecimal.parse(String text)
Parses text into an XPathDecimal.
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
scale → int
The number of decimal places in unscaledValue.
final
stringValue → String
Canonical string representation of this item.
no setteroverride
type → XPathType
The XDM type of this item.
no setteroverride
unscaledValue → BigInt
The unscaled integer mantissa.
final
value → Object
The underlying Dart value representation.
no setteroverride

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.
override

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-() → XPathDecimal
Returns the difference of this and other.
override

Static Properties

zero → XPathDecimal
The canonical zero decimal (0).
final