All Packages Class Hierarchy This Package Previous Next Index
Class cynosurex.legacy.VAX_Float
java.lang.Object
|
+----cynosurex.legacy.VAX_Float
- public class VAX_Float
- extends Object
- implements CommonInterface
This class includes static methods to read and convert
various VAX float format.
This class cannot be instantiated.
-
D_float_to_double(byte[])
- This static method takes in a VAX D-Float
and returns a Java double-precision floating
point.
-
F_float_to_float(byte[])
- This static method takes in a VAX F-Float
and returns a Java 32-bit floating
point.
F_float_to_float
public static float F_float_to_float(byte f_float[])
- This static method takes in a VAX F-Float
and returns a Java 32-bit floating
point. This method throws IndexOutOfBoundsException
if the length of the array is not 4 bytes (32 bits).
It also throws ReservedOperandException if the biased
exponent is 0 and the sign bit is 1.
- Parameters:
- f_float - VAX F-Float bits
D_float_to_double
public static double D_float_to_double(byte d_float[])
- This static method takes in a VAX D-Float
and returns a Java double-precision floating
point. This method throws IndexOutOfBoundsException
if the length of the array is not 8 bytes (64 bits).
It also throws ReservedOperandException if the biased
exponent is 0 and the sign bit is 1.
- Parameters:
- d_float - VAX D-Float bits
All Packages Class Hierarchy This Package Previous Next Index