|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Sets the floating-point control word.
New control-word bit values.
Mask for new control-word bits to set.
The _set_controlfp is similar to _control87, but it only sets the floating-point control word to newControl. The bits in the values indicate the floating-point control state. The floating-point control state allows the program to change the precision, rounding, and infinity modes in the floating-point math package. You can also mask or unmask floating-point exceptions using _set_controlfp. For more information, see .
This function is deprecated when compiling withor /clr:pure because the common language runtime only supports the default floating-point precision.
Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003; x86 processor only
For more compatibility information, see Compatibility in the Introduction.