The 251 does not contain an interrupt vector to trap
floating-point errors; therefore, your software must respond
appropriately to these error conditions.
In addition to the normal floating-point values, a double
number may contain a binary error value. These values are defined as
a part of the IEEE standard and are used whenever an error occurs
during normal processing of floating-point operations. Your code
should check for possible arithmetic errors at the end of each
floating-point operation.
Name
Value
Meaning
NaN
0xFFFFFFF FFFFFFFF
Not a number
+INF
0x7FF0000 00000000
Positive infinity (positive overflow)
-INF
0xFFF0000 00000000
Negative infinity (negative overflow)
The C251 library function _chkdouble_ allows you to quickly
check floating-point status on double type numbers.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.