Maven module :un.api : api-common :
Class : un.api.number.Float64
Extends/Implements : un.api.number.Number
Subclasses : -

64bit decimal, also called Double.
Encoded in IEEE754
http://en.wikipedia.org/wiki/Double-precision_floating-point_format
author  Johann Sorel


Variables : MASK_FRACTION, MASK_EXPONENT, MASK_SIGN, FRACTION_SIZE, EXPONENT_SIZE, EXP_BIAS
Functions : decompose, decompose, encode, decode, decode, decode, add, subtract, mult, divide, zero, isZero, one, isOne, pow, toInteger, toLong, toFloat, toDouble


public long MASK_FRACTION

public long MASK_EXPONENT

public long MASK_SIGN

public int FRACTION_SIZE

public int EXPONENT_SIZE

public int EXP_BIAS


public IEEE754 decompose (double value)

public IEEE754 decompose (double value, IEEE754 buffer)


Algorithm from Bob Burger :
http://burgerrg.com/fp/index.html
param  candidate number to encode
return  Chars encoded number
public Chars encode (double candidate)



public double decode (Chars candidate)


param  candidate text de decode
param  fromIndex start offset
param  toIndex last character excluded,
or use -1 to stop on sequence end or invalid character.
return  decoded value
public double decode (Chars candidate, int fromIndex, int toIndex)

public double decode (CharIterator ite, boolean strict)

public Arithmetic add (Arithmetic other)

public Arithmetic subtract (Arithmetic other)

public Arithmetic mult (Arithmetic other)

public Arithmetic divide (Arithmetic other)

public Arithmetic zero ()

public boolean isZero ()

public Arithmetic one ()

public boolean isOne ()

public Arithmetic pow (int n)

public int toInteger ()

public long toLong ()

public float toFloat ()

public double toDouble ()