Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: in the CS, we print out a normailzed number, not a denormalized one!

...

Code Block
bgColor#FFCCCC
float x = 1/3.0f;
System.out.println("Original    : " + x);
x = x * 7e-45f;
System.out.println("NormalizedDenormalized: " + x);
x = x / 7e-45f;
System.out.println("Restored    : " + x);

...

Code Block
bgColor#ccccff
double x = 1/3.0;
System.out.println("Original    : " + x);
x = x * 7e-45;
System.out.println("DenormalizedNormalized: " + x);
x = x / 7e-45;
System.out.println("Restored    : " + x);

...