Currency class
Pascal currency math/currency functions
Constructors
- Currency(String value)
- Currency.fromBigInt(BigInt pasc)
- Currency.fromCurrency(Currency currency)
- Currency.fromMolina(String molina)
Properties
Methods
-
isVague(
) → bool - Gets a value indicating that the current value has more decimals than allowed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toFixed(
BigInt x) → String -
toMolina(
) → String - Get pascal value as string
-
toPositive(
) → Currency - Gets a positive variant of the value. If the value is already positive, the current instance will be returned, else a new instance.
-
toString(
) → String -
A string representation of this object.
override
-
toStringOpt(
{dynamic decimals = 4}) → String - Gets an optimized pascal value with less zeros as possible.
Operators
-
operator +(
Currency c) → Currency - Arithmetic operators
-
operator -(
Currency c) → Currency -
operator <(
dynamic o) → bool -
operator <=(
dynamic o) → bool -
operator ==(
Object o) → bool -
Comparative operators
override
-
operator >(
dynamic o) → bool -
operator >=(
dynamic o) → bool