Package org.htmlunit.corejs.javascript
Class DToA
- java.lang.Object
-
- org.htmlunit.corejs.javascript.DToA
-
class DToA extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static int
Bias
private static double[]
bigtens
private static int
Bletch
private static int
Bndry_mask
private static int[]
dtoaModes
(package private) static int
DTOSTR_EXPONENTIAL
(package private) static int
DTOSTR_FIXED
(package private) static int
DTOSTR_PRECISION
(package private) static int
DTOSTR_STANDARD
(package private) static int
DTOSTR_STANDARD_EXPONENTIAL
private static int
Exp_11
private static int
Exp_mask
private static int
Exp_mask_shifted
private static int
Exp_msk1
private static long
Exp_msk1L
private static int
Exp_shift
private static int
Exp_shift1
private static int
Exp_shiftL
private static int
Frac_mask
private static int
Frac_mask1
private static long
Frac_maskL
private static int
Int_max
private static int
Log2P
private static int
n_bigtens
private static int
P
private static int
Quick_max
private static int
Sign_bit
private static int
Ten_pmax
private static double[]
tens
-
Constructor Summary
Constructors Constructor Description DToA()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static char
BASEDIGIT(int digit)
private static java.math.BigInteger
d2b(double d, int[] e, int[] bits)
private static int
hi0bits(int x)
(package private) static int
JS_dtoa(double d, int mode, boolean biasUp, int ndigits, boolean[] sign, java.lang.StringBuilder buf)
(package private) static java.lang.String
JS_dtobasestr(int base, double d)
(package private) static void
JS_dtostr(java.lang.StringBuilder buffer, int mode, int precision, double d)
private static int
lo0bits(int y)
(package private) static java.math.BigInteger
pow5mult(java.math.BigInteger b, int k)
(package private) static boolean
roundOff(java.lang.StringBuilder buf)
(package private) static double
setWord0(double d, int i)
private static void
stripTrailingZeroes(java.lang.StringBuilder buf)
private static void
stuffBits(byte[] bits, int offset, int val)
(package private) static int
word0(double d)
(package private) static int
word1(double d)
-
-
-
Field Detail
-
DTOSTR_STANDARD
static final int DTOSTR_STANDARD
- See Also:
- Constant Field Values
-
DTOSTR_STANDARD_EXPONENTIAL
static final int DTOSTR_STANDARD_EXPONENTIAL
- See Also:
- Constant Field Values
-
DTOSTR_FIXED
static final int DTOSTR_FIXED
- See Also:
- Constant Field Values
-
DTOSTR_EXPONENTIAL
static final int DTOSTR_EXPONENTIAL
- See Also:
- Constant Field Values
-
DTOSTR_PRECISION
static final int DTOSTR_PRECISION
- See Also:
- Constant Field Values
-
Frac_mask
private static final int Frac_mask
- See Also:
- Constant Field Values
-
Exp_shift
private static final int Exp_shift
- See Also:
- Constant Field Values
-
Exp_msk1
private static final int Exp_msk1
- See Also:
- Constant Field Values
-
Frac_maskL
private static final long Frac_maskL
- See Also:
- Constant Field Values
-
Exp_shiftL
private static final int Exp_shiftL
- See Also:
- Constant Field Values
-
Exp_msk1L
private static final long Exp_msk1L
- See Also:
- Constant Field Values
-
Bias
private static final int Bias
- See Also:
- Constant Field Values
-
P
private static final int P
- See Also:
- Constant Field Values
-
Exp_shift1
private static final int Exp_shift1
- See Also:
- Constant Field Values
-
Exp_mask
private static final int Exp_mask
- See Also:
- Constant Field Values
-
Exp_mask_shifted
private static final int Exp_mask_shifted
- See Also:
- Constant Field Values
-
Bndry_mask
private static final int Bndry_mask
- See Also:
- Constant Field Values
-
Log2P
private static final int Log2P
- See Also:
- Constant Field Values
-
Sign_bit
private static final int Sign_bit
- See Also:
- Constant Field Values
-
Exp_11
private static final int Exp_11
- See Also:
- Constant Field Values
-
Ten_pmax
private static final int Ten_pmax
- See Also:
- Constant Field Values
-
Quick_max
private static final int Quick_max
- See Also:
- Constant Field Values
-
Bletch
private static final int Bletch
- See Also:
- Constant Field Values
-
Frac_mask1
private static final int Frac_mask1
- See Also:
- Constant Field Values
-
Int_max
private static final int Int_max
- See Also:
- Constant Field Values
-
n_bigtens
private static final int n_bigtens
- See Also:
- Constant Field Values
-
tens
private static final double[] tens
-
bigtens
private static final double[] bigtens
-
dtoaModes
private static final int[] dtoaModes
-
-
Method Detail
-
BASEDIGIT
private static char BASEDIGIT(int digit)
-
lo0bits
private static int lo0bits(int y)
-
hi0bits
private static int hi0bits(int x)
-
stuffBits
private static void stuffBits(byte[] bits, int offset, int val)
-
d2b
private static java.math.BigInteger d2b(double d, int[] e, int[] bits)
-
JS_dtobasestr
static java.lang.String JS_dtobasestr(int base, double d)
-
word0
static int word0(double d)
-
setWord0
static double setWord0(double d, int i)
-
word1
static int word1(double d)
-
pow5mult
static java.math.BigInteger pow5mult(java.math.BigInteger b, int k)
-
roundOff
static boolean roundOff(java.lang.StringBuilder buf)
-
JS_dtoa
static int JS_dtoa(double d, int mode, boolean biasUp, int ndigits, boolean[] sign, java.lang.StringBuilder buf)
-
stripTrailingZeroes
private static void stripTrailingZeroes(java.lang.StringBuilder buf)
-
JS_dtostr
static void JS_dtostr(java.lang.StringBuilder buffer, int mode, int precision, double d)
-
-