_status87
raw OCR
Gets floating-point status.
Defined in header <float.h>
Syntax
#include <float.h>
unsigned int _status87(void);
_status87 gets the floating-point status word, which is a combination of
the 80x87 status word and other conditions detected by the 80x87
exception handler.
Portability
| DOS | UNIX | Windows | ANSI C | C++ only |
|---|---|---|---|---|
| ■ | ■ |
Return value
The bits in the return value give the floating-point status. See float.h for a complete definition of the bits returned by _status87.
Example
#include <stdio.h>
#include <float.h>
int -main(void)
{
float x;
double y = 1.5e-100;
printf("Status 87 before error: %x\n", _status87());
X = y; /* force an error to occur */
y = x;
printf("Status 87 after error : %x\n", _status87());
return 0;
Differences from modern implementations
Nothing recorded yet.
Modern references
These are search links, not yet checked by hand.
Extraction notes
- heading `status87` read as `_status87`
Stable link: /3.1/float.h/_status87/
· short form /3.1/_status87/