@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)
throws net.openhft.chronicle.core.io.ClosedIllegalStateException,
net.openhft.chronicle.core.io.ThreadingIllegalStateException
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.net.openhft.chronicle.core.io.ClosedIllegalStateException - If the resource has been released or closed.net.openhft.chronicle.core.io.ThreadingIllegalStateException - If this resource was accessed by multiple threads in an unsafe wayCopyright © 2024. All rights reserved.