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="a9bd66edb1eac1cd-af888d21-49724834-91f9bf19-d8c6e90e9d15a96ab432648a"><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