I am confused over “getting and clearing” when working in Microsoft C. Like when or how you get the current status of word settings, and what function to use?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Research the following; Match Functions, Floating-point-math-package. and exception handling. This will greatly help you understand the “get and clear functions.
Here is an example of the Getting and Clearing function:
To get the current status word setting, use the
_status87()function as follows:To clear (0x0000) the status word setting before a suspicious floating point operation is performed, use the
_clear87()function as follows:The status word is also cleared (0x0000) whenever the function
_fpreset()is called to initialize the floating point math package.