Class QuadrupleParser
java.lang.Object
gaiasky.util.math.QuadrupleParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QuadrupleParses a string containing a floating-point number and sets the fields of the owner (aQuadrupleinstance)
uses static arrays BUFFER_4x64_B, BUFFER_6x32_A, BUFFER_6x32_B, BUFFER_6x32_C, BUFFER_12x32static StringtoString(boolean negative, int exponent, long mantHi, long mantLo) static Stringstatic String
-
Field Details
-
EXPONENT_OF_INFINITY
public static final int EXPONENT_OF_INFINITY- See Also:
-
EXPONENT_BIAS
public static final int EXPONENT_BIAS- See Also:
-
-
Constructor Details
-
QuadrupleParser
public QuadrupleParser()
-
-
Method Details
-
parse
Parses a string containing a floating-point number and sets the fields of the owner (aQuadrupleinstance)
uses static arrays BUFFER_4x64_B, BUFFER_6x32_A, BUFFER_6x32_B, BUFFER_6x32_C, BUFFER_12x32- Parameters:
source- input string to parseowner- the Quadruple instance whose fields are to set so that it has the value presented by the source- Returns:
- the owner with the values of the fields modified to correspond to the value presented by the source
-
toString
-
toString
-
toString
-