Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...

Code Block
Original      : 0.33333334
Denormalized?  : 2.8E-45
Restored      : 0.4

Compliant Solution

...

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

...

Code Block
Original      : 0.3333333333333333
Denormalized?  : 2.333333333333333E-45
Restored      : 0.3333333333333333

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="d78d49e00e4773fe-1aad7580-45dd43ec-9f788614-28aa984dc4ecbd9b4aa4ce1f"><ac:plain-text-body><![CDATA[

[[Bryant 2003

AA. Bibliography#Bryant 03]]

Computer Systems: A Programmer's Perspective. Section 2.4 Floating Point

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="0a66ac52ac09c0b2-0f48dd4d-4c28437f-a0b1ad34-86c85903b1ff9fa4ab49c536"><ac:plain-text-body><![CDATA[

[[CVE 2008

AA. Bibliography#CVE 08]]

[CVE-2010-4476

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-4476]

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="fe1e4db4c81226e5-5a67d8fd-43a149b7-8736ae56-d3bb6b16a9b223b4a93b1e07"><ac:plain-text-body><![CDATA[

[[IEEE 754

AA. Bibliography#IEEE 754 2006]]

 

]]></ac:plain-text-body></ac:structured-macro>

...