@FunctionalInterface public interface DecimalAppender
A decimal number is represented as: decimal = sign * mantissa * 10 ^ (-exponent)
,
where:
sign
is -1 if the number is negative, +1 otherwise.mantissa
holds the significant digits of the decimal number.exponent
denotes the power of 10 by which the mantissa is scaled.Modifier and Type | Method and Description |
---|---|
void |
append(boolean isNegative,
long mantissa,
int exponent)
Appends a decimal number, represented by its sign, mantissa, and exponent, to a target.
|
void append(boolean isNegative, long mantissa, int exponent)
isNegative
- Whether the number is negative. true
indicates a negative number,
false
indicates a positive number.mantissa
- The significant digits of the decimal number, represented as a long integer.exponent
- The power of 10 by which the mantissa is scaled to obtain the actual decimal number.Copyright © 2023. All rights reserved.