Class cynosurex.legacy.VAX_Float
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

This class includes static methods to read and convert various VAX float format. This class cannot be instantiated.


Method Index

 o D_float_to_double(byte[])
This static method takes in a VAX D-Float and returns a Java double-precision floating point.
 o F_float_to_float(byte[])
This static method takes in a VAX F-Float and returns a Java 32-bit floating point.

Methods

 o 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).
Parameters:
f_float - VAX F-Float bits
 o 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).
Parameters:
d_float - VAX D-Float bits

All Packages  Class Hierarchy  This Package  Previous  Next  Index