public class NumberUtil extends Object
Modifier and Type | Method and Description |
---|---|
static double |
readDouble(byte[] bytes,
int offset,
int len,
int precision)
Gets the double value of a int.
|
static double |
readDouble(int value,
int precision)
Gets the double value of a int.
|
static int |
readInt(byte[] bytes,
int offset,
int len) |
static byte[] |
writeInt(double value,
int precision) |
public static double readDouble(byte[] bytes, int offset, int len, int precision)
bytes
- Array of byte.offset
- Offset of the int.len
- Length of the value.precision
- Precision of the value.public static double readDouble(int value, int precision)
value
- The int value.precision
- Precision of the value.public static int readInt(byte[] bytes, int offset, int len)
public static byte[] writeInt(double value, int precision)