Versions Compared

Key

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

...

Operating System

How to handle floating point errors

Linux
Solaris 10
Mac OS X 10.5

Use the C99 floating point exception functions.

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b2ae1ddf14e268ec-a32392a4-445342e7-b90c93d2-30009f53fd9f0f496932b126"><ac:plain-text-body><![CDATA[

Windows

Either use the C99 floating point exception function or structured exception handling through _fpieee_flt [[MSDN

AA. C References#MSDN]]

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

...

FLP02-A. Consider avoiding floating point numbers when precise computation is needed      05. Floating Point (FLP)       FLP02FLP30-A. Consider avoiding floating point numbers when precise computation is neededC. Do not use floating point variables as loop counters