Precompute all possible short decimal tenToNth powers
This is required before making short decimal have 18-digit max precision
@@ -49,7 +49,7 @@ public final class Decimals
private static final Pattern DECIMAL_PATTERN = Pattern.compile("(\\+?|-?)((0*)(\\d*))(\\.(\\d+))?");
- private static final int LONG_POWERS_OF_TEN_TABLE_LENGTH = 18;
+ private static final int LONG_POWERS_OF_TEN_TABLE_LENGTH = 19;
private static final int BIG_INTEGER_POWERS_OF_TEN_TABLE_LENGTH = 100;
private static final long[] LONG_POWERS_OF_TEN = new long[LONG_POWERS_OF_TEN_TABLE_LENGTH];
private static final BigInteger[] BIG_INTEGER_POWERS_OF_TEN = new BigInteger[BIG_INTEGER_POWERS_OF_TEN_TABLE_LENGTH];
