...
- Conversion from floating point to integer may cause an "invalid" floating point exception. If this occurs, the value of that integer is undefined and should not be used.
- Most implementations fail to raise "invalid" for conversions from any negative or "large" positive FP values to unsigned integer types or to signed char . See www.tybor.com/(see tflt2int.c).
- When a non-integer floating point value is converted into an integer the "inexact" floating point exception is raised.
...
Operating System | How to handle floating point errors | |||
---|---|---|---|---|
Linux | Use the C99 floating point exception functions. | |||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="d6d02178d2dfb77f-bb224e2e-4b084e9a-b210bb7b-686cc6a99bae219ca072685c"><ac:plain-text-body><![CDATA[ | Windows | Either use the C99 floating point exception function or structured exception handling through | AA. C References#MSDN]] | ]]></ac:plain-text-body></ac:structured-macro> |
...