title | ms.custom | ms.date | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | apiname | apilocation | apitype | f1_keywords | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
_set_controlfp | Microsoft Docs |
11/04/2016 |
|
article |
|
|
DLLExport |
|
|
|
e0689d50-f68a-4028-a9c1-fb23eedee4ad |
11 |
corob-msft |
corob |
ghogen |
Sets the floating-point control word.
void __cdecl _set_controlfp(
unsigned int newControl,
unsigned int mask
);
newControl
New control-word bit values.
mask
Mask for new control-word bits to set.
None.
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 _control87, _controlfp, __control87_2.
This function is deprecated when compiling with /clr (Common Language Runtime Compilation) because the common language runtime only supports the default floating-point precision.
Routine | Required header | Compatibility |
---|---|---|
_set_controlfp |
<float.h> | x86 processor only |
For more compatibility information, see Compatibility in the Introduction.
Floating-Point Support
_clear87, _clearfp
_status87, _statusfp, _statusfp2