jxl.biff
Class DoubleHelper

java.lang.Object
  |
  +--jxl.biff.DoubleHelper

public class DoubleHelper
extends java.lang.Object

Class to help handle doubles


Constructor Summary
DoubleHelper()
           
 
Method Summary
static void getIEEEBytes(double d, byte[] target, int pos)
          Puts the IEEE representation of the double provided into the array at the designated position
static double getIEEEDouble(byte[] data, int pos)
          Gets the IEEE value from the byte array passed in
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

DoubleHelper

public DoubleHelper()
Method Detail

getIEEEDouble

public static double getIEEEDouble(byte[] data,
                                   int pos)
Gets the IEEE value from the byte array passed in
Parameters:
pos - the position in the data block which contains the double value
data - the data block containing the raw bytes
Returns:
the double value converted from the raw data

getIEEEBytes

public static void getIEEEBytes(double d,
                                byte[] target,
                                int pos)
Puts the IEEE representation of the double provided into the array at the designated position
Parameters:
target - the data block into which the binary representation is to be placed
pos - the position in target in which to place the bytes
d - the double value to convert to raw bytes