public final class CharConversion_double extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
put(double value,
char[] target,
int offset)
This algorithm is somewhere from 3 times to 25 times (depending on exponent) faster than the
infinite spaghetti code used in JDK.
|
public static final int put(double value,
char[] target,
int offset)
Otherwise, the behavior of the algorithm is the same as that of the JDK implementation (i.e. decimal point character '.', denormalized representation in range ]1E7; 1E-3], exponent character 'E', etc.
Note that this method is intended as an implementation detail and a "know-what-you-are-doing" tool that does
not perform array bound checks. If array bound checking is desired, use VarString.add(double) explicitly.
value - the value to be represented as a character sequence.target - the array to receive the character sequence at the given offset.offset - the offset in the target array where the character sequence shall start.Copyright © 2022 MicroStream Software. All rights reserved.