UcumDecimal class

Properties

asDouble double
no setter
decimal int
getter/setter pair
digits String
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
negative bool
getter/setter pair
precision int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scientific bool
getter/setter pair

Methods

absolute() UcumDecimal
add(UcumDecimal other) UcumDecimal
allZeros(String? s, [int start = 0]) bool
asInteger() int
asScientific() String
asUcumDecimal() String
cdig(int i) String
checkForCouldBeWholeNumber() → void
comparesTo(UcumDecimal? other) int
copy() UcumDecimal
countSignificants(String value) int
delete(String value, int offset, int length) String
dig(String c) int
divide(UcumDecimal other) UcumDecimal
divideInt(int other) UcumDecimal
divInt(UcumDecimal other) UcumDecimal
doAdd(UcumDecimal other) UcumDecimal
doSubtract(UcumDecimal other) UcumDecimal
equals(Object other) bool
equalsValue(Object other) bool
equivalent(Object other) bool
insert(String ins, String value, int offset) String
isOne() bool
isWholeNumber() bool
isZero() bool
limitPrecisionTo(UcumDecimal other) → void
modulo(UcumDecimal other) UcumDecimal
multiply(UcumDecimal other) UcumDecimal
multiplyInt(int other) UcumDecimal
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replaceChar(String s, int offset, String c) String
setValueScientific(String value) → void
setValueUcumDecimal(String value) → void
significantFigures() int
stringAddition(String s1, String s2) String
stringMultiply(String char, int count) String
stringSubtraction(String s1, String s2) String
subtract(UcumDecimal other) UcumDecimal
toString() String
A string representation of this object.
override
trimLeadingZeros(String s) String
trunc() UcumDecimal

Operators

operator *(UcumDecimal other) UcumDecimal
operator /(UcumDecimal other) UcumDecimal
operator ==(Object other) bool
The equality operator.
override
operator ~/(UcumDecimal other) UcumDecimal

Static Methods

one() UcumDecimal
zero() UcumDecimal