DecString class

Very rough compatibility functions for Cosmos' decimal types.

TODO: This is a temporary solution to make working with decimals easier, but it is not a full port of the Cosmos decimal types, and should be deprecated upon the completion of such.

Constructors

DecString()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

decStringFromDouble(double f) String
Outputs a string containing a fixed-precision value of 18 places for the input double.
doubleFromDecString(String f) double
Outputs a double containing the value represented by the input fixed-precision string of up to 18 places.

Constants

MAX → const int
ONE → const double
PRECISION → const int