public class HalfFloatUtil extends VAXFloatUtil
VAXFloatUtil.FP32, VAXFloatUtil.FP64| Constructor and Description |
|---|
HalfFloatUtil() |
| Modifier and Type | Method and Description |
|---|---|
static double |
google2std(short v)
Convert from Google half precision to double precision.
|
static double |
ieee2std(short v)
Convert from IEEE half precision to double precision.
|
static short |
std2google(double v)
Convert from double precision to Google half precision.
|
static short |
std2ieee(double v)
Convert from double precision to IEEE half precision.
|
public static double ieee2std(short v)
v - IEEE half precisionpublic static short std2ieee(double v)
v - double precisionpublic static double google2std(short v)
v - Google half precisionpublic static short std2google(double v)
v - double precision