ph-math/src/main/java/com/helger/numbercruncher/mathutils/IEEE754.java
public void print (@Nonnull final PrintStream aPW)
  {
    aPW.println ("------------------------------");

    // Print the value.
    if (isDouble ())
      aPW.println ("double value = " + doubleValue ());
    else
      aPW.println ("float value = " + floatValue ());

    // Print the sign.
    aPW.print ("sign=" + signBit ());

    // Print the bit representation of the exponent and its
    // biased and unbiased values. Indicate whether the value
    // is denormalized, or whether the exponent is reserved.
    aPW.print (", exponent=" + exponentBits () + " (biased=" + biasedExponent ());

    if (isZero ())
      aPW.println (", zero)");
    else
      if (isExponentReserved ())
        aPW.println (", reserved)");
      else
        if (isDenormalized ())
          aPW.println (", denormalized, use " + unbiasedExponent () + ")");
        else
          aPW.println (", normalized, unbiased=" + unbiasedExponent () + ")");

    // Print the significand.
    aPW.println ("significand=" + significandBits ());
  }
public void print (@Nonnull final PrintStream aPW)
  {
    aPW.println ("------------------------------");

    // Print the value.
    if (isDouble ())
      aPW.println ("double value = " + doubleValue ());
    else
      aPW.println ("float value = " + floatValue ());

    // Print the sign.
    aPW.print ("sign=" + signBit ());

    // Print the bit representation of the exponent and its
    // biased and unbiased values. Indicate whether the value
    // is denormalized, or whether the exponent is reserved.
    aPW.print (", exponent=" + exponentBits () + " (biased=" + biasedExponent ());

    if (isZero ())
      aPW.println (", zero)");
    else
      if (isExponentReserved ())
        aPW.println (", reserved)");
      else
        if (isDenormalized ())
          aPW.println (", denormalized, use " + unbiasedExponent () + ")");
        else
          aPW.println (", normalized, unbiased=" + unbiasedExponent () + ")");

    // Print the significand.
    aPW.println ("significand=" + significandBits ());
  }
public void print ( @ Nonnull final PrintStream aPW ) { aPW . println ( "------------------------------" ) ; // Print the value. if ( isDouble ( ) ) aPW . println ( "double value = " + doubleValue ( ) ) ; else aPW . println ( "float value = " + floatValue ( ) ) ; // Print the sign. aPW . print ( "sign=" + signBit ( ) ) ; // Print the bit representation of the exponent and its // biased and unbiased values. Indicate whether the value // is denormalized, or whether the exponent is reserved. aPW . print ( ", exponent=" + exponentBits ( ) + " (biased=" + biasedExponent ( ) ) ; if ( isZero ( ) ) aPW . println ( ", zero)" ) ; else if ( isExponentReserved ( ) ) aPW . println ( ", reserved)" ) ; else if ( isDenormalized ( ) ) aPW . println ( ", denormalized, use " + unbiasedExponent ( ) + ")" ) ; else aPW . println ( ", normalized, unbiased=" + unbiasedExponent ( ) + ")" ) ; // Print the significand. aPW . println ( "significand=" + significandBits ( ) ) ; }
Print the decomposed parts of the value.
Print the decomposed parts of the value .