public class FloatingPointConverter extends Object
Modifier and Type | Field and Description |
---|---|
static long |
DOUBLE_SIGN_MASK |
static int |
FLOAT_SIGN_MASK |
static FloatingPointConverter |
THE_INSTANCE |
Modifier and Type | Method and Description |
---|---|
static FastStringBuffer |
appendDouble(FastStringBuffer s,
double d,
boolean forceExponential)
Append a string representation of a double value to a string buffer
|
static FastStringBuffer |
appendFloat(FastStringBuffer s,
float f,
boolean forceExponential)
Append a string representation of a float value to a string buffer
|
static FastStringBuffer |
appendInt(FastStringBuffer s,
int i)
Format an integer, appending the string representation of the integer to a string buffer
|
public static FloatingPointConverter THE_INSTANCE
public static final long DOUBLE_SIGN_MASK
public static final int FLOAT_SIGN_MASK
public static FastStringBuffer appendInt(FastStringBuffer s, int i)
s
- the string bufferi
- the integer to be formattedpublic static FastStringBuffer appendDouble(FastStringBuffer s, double d, boolean forceExponential)
s
- the string buffer to which the result will be appendedd
- the double to be formattedpublic static FastStringBuffer appendFloat(FastStringBuffer s, float f, boolean forceExponential)
s
- the string buffer to which the result will be appendedf
- the float to be formattedforceExponential
- forces exponential notation if set (if not set, exponential notation
is used only for values outside the range 1e-6 to 1e+6)Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.