Versions Compared

Key

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

...

Operating System

Handling FP errors

Linux
Solaris 10
Mac OS X 10.5
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="e66d49a677aed31e-3458da5c-41434a64-8aa8823b-90bac3cd0e2be95e7e9cbabc"><ac:plain-text-body><![CDATA[Fedora Core 5

C99 FP functions - These functions are declared in fenv.h [[Open Group 04

AA. C References#Open Group 04]]
]]></ac:plain-text-body></ac:structured-macro>
Before fenv.h based functions were standardized; an alternative to using these C99/fenv() functions is using ieee_flags and ieee_handler

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="556c297e261ea5d8-7a3dc719-4d3142e7-a8119e88-e0f31eb8a3192dbc0a238016"><ac:plain-text-body><![CDATA[

Windows

Structured Exception Handling - user defined handler _fpieee_flt [[MSDN

AA. C References#MSDN]]
]]></ac:plain-text-body></ac:structured-macro>
 

...

FLP02-A. Understand the caveats of floating point exceptions      05. Floating Point (FLP)       FLP30FLP04-C. Do not use floating point variables as loop countersA. Consider avoiding floating point numbers when precise computation is needed