Package org.mozilla.javascript.dtoa
Class Decimal
- java.lang.Object
-
- org.mozilla.javascript.dtoa.Decimal
-
public class Decimal extends java.lang.ObjectThis class formats a decimal number into a string representation and stores the result in a buffer. It is highly optimized for the case of formatting a double and only works if the number has a maximum of 17 digits of precision.Based on code by Guilietti: https://github.com/c4f7fcce9cb06515/Schubfach/blob/3c92d3c9b1fead540616c918cdfef432bca53dfa/todec/src/math/FloatToDecimal.java
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_CHARS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()Format the number according to the formatting rules in EcmaScript chapter 6, as defined for the "Number::toString" operation, for radix 10.
-
-
-
Field Detail
-
MAX_CHARS
public static final int MAX_CHARS
- See Also:
- Constant Field Values
-
-