public final class FloatingPoint
extends java.lang.Object
| 构造器和说明 |
|---|
FloatingPoint() |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.math.BigDecimal |
getBigDecimal(byte[] bytes,
int i,
int unscaledNumBytes,
int scale) |
static double |
getDouble(byte[] bytes,
int i,
int numBytes) |
static float |
getFloat(byte[] bytes,
int i,
int numBytes) |
static int |
putDouble(double val,
byte[] bytes,
int i) |
static int |
putFloat(float val,
byte[] bytes,
int i) |
static byte[] |
toBytes(double val) |
static byte[] |
toBytes(float val) |
public static float getFloat(byte[] bytes,
int i,
int numBytes)
throws DecodeException
DecodeExceptionpublic static int putFloat(float val,
byte[] bytes,
int i)
public static byte[] toBytes(float val)
public static double getDouble(byte[] bytes,
int i,
int numBytes)
throws DecodeException
DecodeExceptionpublic static byte[] toBytes(double val)
public static int putDouble(double val,
byte[] bytes,
int i)
public static java.math.BigDecimal getBigDecimal(byte[] bytes,
int i,
int unscaledNumBytes,
int scale)