Package io.github.tonywasher.joceanus.oceanus.decimal
package io.github.tonywasher.joceanus.oceanus.decimal
Package that provides a Decimal implementation in many ways similar to that provided by
BigDecimal, except that the class is mutable, allowing for much faster arithmetic.
Rather than deal with arbitrarily large numbers, TethysDecimal stores the value as a simple long, and so is not suitable for extremely large values, as precision can be lost. Users should continue to use BigDecimal for these situations
This implementation is particularly suited to financial applications since a monetary value of $10,000,000,000,000,000.00 can easily be accommodated within a long. Hopefully this will be sufficient for most peoples purposes.
-
ClassesClassDescriptionProvides classes to represent decimal numbers with fixed numbers of decimal digits
OceanusDecimal.theScaleas Long integers.Decimal constants.Presentation methods for decimals in a particular locale.Locale constants.Parsing methods for decimals in a particular locale.Represents a Money object.Represents a Price object.Represents a Rate object.Represents a Ratio object.Represents a Units object.