Class QuadrupleParser

java.lang.Object
gaiasky.util.math.QuadrupleParser

public class QuadrupleParser extends Object
Utilities to convert Quadruples to and from Strings.
  • Field Details

  • Constructor Details

    • QuadrupleParser

      public QuadrupleParser()
  • Method Details

    • parse

      public static Quadruple parse(String source, Quadruple owner)
      Parses a string containing a floating-point number and sets the fields of the owner (a Quadruple instance)
      uses static arrays BUFFER_4x64_B, BUFFER_6x32_A, BUFFER_6x32_B, BUFFER_6x32_C, BUFFER_12x32
      Parameters:
      source - input string to parse
      owner - 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

      public static String toString(Quadruple q)
    • toString

      public static String toString(QuadrupleImmutable f)
    • toString

      public static String toString(boolean negative, int exponent, long mantHi, long mantLo)