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="0d650692ea95d471-2203bc74-46fe4a03-9466a5a0-ba7f63b5fb9389acfb083890"><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>

...

VOID FLP02-A. Understand the caveats of floating point exceptions      05. Floating Point (FLP)       FLP04FLP02-A. Consider avoiding floating point numbers when precise computation is needed