Package-level declarations
Types
Implementation of floating-point arbitrary precision arithmetic.
Decimal precision signifies how many digits will significand have. If decimal precision is 0 and RoundingMode is NONE infinite precision is used.
Created by Ugljesa Jovanovic ugljesa.jovanovic@ionspin.com on 23-Mar-2019
Functions
Converts a number to big decimal, optionally modifies the exponent and provides decimal mode. Example: 12.toByte().toBigDecimal() produces 1.2E1 12.toByte().toBigDecimal(exponentModifier = 2) produces 1.2E3 (original exponent was 1 and modifier adds 2)
Converts a number to big decimal, optionally modifies the exponent and provides decimal mode. Example: 1234.0.toBigDecimal() produces 1.234E3 1234.0.toBigDecimal(exponentModifier = 2) produces 1.234E5 (original exponent was 3 and modifier adds 2)
Converts a number to big decimal, optionally modifies the exponent and provides decimal mode. Example: 1234F.toBigDecimal() produces 1.234E3 1234F.toBigDecimal(exponentModifier = 2) produces 1.234E5 (original exponent was 3 and modifier adds 2)
Converts a number to big decimal, optionally modifies the exponent and provides decimal mode. Example: 1234.toBigDecimal() produces 1.234E3 1234.toBigDecimal(exponentModifier = 2) produces 1.234E5 (original exponent was 3 and modifier adds 2)
Converts a number to big decimal, optionally modifies the exponent and provides decimal mode. Example: 1234L.toBigDecimal() produces 1.234E3 1234L.toBigDecimal(exponentModifier = 2) produces 1.234E5 (original exponent was 3 and modifier adds 2)
Converts a number to big decimal, optionally modifies the exponent and provides decimal mode. Example: 123.toShort().toBigDecimal() produces 1.23E2 123.toShort().toBigDecimal(exponentModifier = 2) produces 1.23E4 (original exponent was 2 and modifier adds 2)
Converts a number to big decimal, optionally modifies the exponent and provides decimal mode. Example: "1234".toBigDecimal() produces 1.234E3 "1234".toBigDecimal(exponentModifier = 2) produces 1.234E5 (original exponent was 3 and modifier adds 2)
Create BigDecimal from BigInteger significand and supplied exponent. Example: 12.toByte().toBigDecimalUsingSignificandAndExponent(2) produces 1.2E2
Create BigDecimal from BigInteger significand and supplied exponent. Example: 1234L.toBigDecimalUsingSignificandAndExponent(2) produces 1.234E2
Create BigDecimal from BigInteger significand and supplied exponent. Example: 123.toShort().toBigDecimalUsingSignificandAndExponent(2) produces 1.23E2
Created by Ugljesa Jovanovic ugljesa.jovanovic@ionspin.com on 24-Mar-2019