|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jdt.internal.compiler.util.FloatUtil
public class FloatUtil
Internal utility for declaring with hexadecimal double and float literals.
| 构造方法摘要 | |
|---|---|
FloatUtil()
|
|
| 方法摘要 | |
|---|---|
static double |
valueOfHexDoubleLiteral(char[] source)
Returns the double value corresponding to the given hexadecimal floating-point double precision literal. |
static float |
valueOfHexFloatLiteral(char[] source)
Returns the float value corresponding to the given hexadecimal floating-point single precision literal. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public FloatUtil()
| 方法详细信息 |
|---|
public static float valueOfHexFloatLiteral(char[] source)
This method returns the same answer as Float.parseFloat(new String(source)) does in JDK 1.5, except that this method returns Floal.NaN if it would underflow to 0 (parseFloat just returns 0). The method handles all the tricky cases, including fraction rounding to 24 bits and gradual underflow.
source - source string containing single precision
hexadecimal floating-point literal
public static double valueOfHexDoubleLiteral(char[] source)
This method returns the same answer as Double.parseDouble(new String(source)) does in JDK 1.5, except that this method throw NumberFormatException in the case of overflow to infinity or underflow to 0. The method handles all the tricky cases, including fraction rounding to 53 bits and gradual underflow.
source - source string containing double precision
hexadecimal floating-point literal
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||