Function name : _status87
Header file : <float.h>
Function prototype : unsigned int _status87(void);
Function : Get floating point processor status value
Parameters : no parameters
Return value : Returns the floating point processor status value
program:
#include<stdio.h>#include<float.h>intmain(){floatx;doubley=1.5e-100;printf(Status87beforeerror:%xn, _status87());//Output the current status x=y;//Force an error y=x;printf(Status87aftererror:%xn,_status87());//Output the current status return0;}
Running results:
Status87beforeerror:0Status87aftererror:3