edu.northwestern.at.utils.math
Class SplitDouble

java.lang.Object
  extended by edu.northwestern.at.utils.math.SplitDouble

public class SplitDouble
extends java.lang.Object

Splits a double into a normalized base two mantissa and exponent..

A double value is split into a normalized mantissa in the range 0.5 to 1.0, and a corresponding base 2 exponent.


Field Summary
 int exponent
          The base two exponent.
 double mantissa
          The normalized mantissa.
 
Constructor Summary
SplitDouble(double d)
          Create SplitDouble object.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mantissa

public double mantissa
The normalized mantissa.


exponent

public int exponent
The base two exponent.

Constructor Detail

SplitDouble

public SplitDouble(double d)
Create SplitDouble object.

Parameters:
d - The double to split.