Package org.web3d.util
Class DoubleToString
java.lang.Object
org.web3d.util.DoubleToString
Convert doubles to string. Prioritize speed over accuracy. Generally
attempting to follow the results from NumberFormat.
- Author:
- Alan Hudson
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
appendAsDouble
(StringBuilder s, long l, long l_mag, int d_magnitude, int numFractDigits) static void
appendFormatted
(StringBuilder s, double d, int numFractDigits)
-
Field Details
-
INFINITY
public static final char[] INFINITY -
NaN
public static final char[] NaN -
ZEROS
public static final char[][] ZEROS
-
-
Constructor Details
-
DoubleToString
public DoubleToString()
-
-
Method Details
-
appendFormatted
-
appendAsDouble
public static void appendAsDouble(StringBuilder s, long l, long l_mag, int d_magnitude, int numFractDigits)
-