dk.vajhoej.record
Class VAXFloatUtil

java.lang.Object
  extended by dk.vajhoej.record.VAXFloatUtil

public class VAXFloatUtil
extends java.lang.Object

Class VAXFloatUtil converts between VAX floating point and IEEE floating point.


Constructor Summary
VAXFloatUtil()
           
 
Method Summary
static int f2s(int v)
          Convert from F floating to S floating.
static long g2t(long v)
          Convert from G floating to T floating.
static int s2f(int v)
          Convert from S floating to F floating.
static long t2g(long v)
          Convert from T floating to G floating.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VAXFloatUtil

public VAXFloatUtil()
Method Detail

f2s

public static int f2s(int v)
Convert from F floating to S floating.

Parameters:
v - F floating
Returns:
S floating

s2f

public static int s2f(int v)
Convert from S floating to F floating.

Parameters:
v - S floating
Returns:
F floating

g2t

public static long g2t(long v)
Convert from G floating to T floating.

Parameters:
v - G floating
Returns:
T floating

t2g

public static long t2g(long v)
Convert from T floating to G floating.

Parameters:
v - T floating
Returns:
G floating