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="907a920156b400bf-2d97906f-4a3b45fa-b2d297c3-66c84ac8451306253cace930"><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