Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by NavBot (jp)

...

Operating System

How to handle floating point errors

Linux
Solaris 10
AIX 5.3
HP-UX 11.31
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="aad50ee32c1b5cab-99d6d5ae-4e1740e7-af909e17-c5199eef0d48f0167178d51b"><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-C. Avoid using floating point numbers when precise computation is needed      05. Floating Point (FLP)      FLP30FLP04-C. Do not use Check floating point variables as loop countersinputs for exceptional values