Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 2.08 KB

set-controlfp.md

File metadata and controls

56 lines (40 loc) · 2.08 KB
description title ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords ms.assetid
Learn more about: _set_controlfp
_set_controlfp
04/05/2018
_set_controlfp
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
api-ms-win-crt-runtime-l1-1-0.dll
DLLExport
apiref
set_controlfp
_set_controlfp
set_controlfp function
floating-point functions, setting control word
_set_controlfp function
e0689d50-f68a-4028-a9c1-fb23eedee4ad

_set_controlfp

Sets the floating-point control word.

Syntax

void __cdecl _set_controlfp(
    unsigned int newControl,
    unsigned int mask
);

Parameters

newControl
New control-word bit values.

mask
Mask for new control-word bits to set.

Return value

None.

Remarks

The _set_controlfp function 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.

Requirements

Routine Required header Compatibility
_set_controlfp <float.h> x86 processor only

For more compatibility information, see Compatibility.

See also

Math and floating-point support
_clear87, _clearfp
_status87, _statusfp, _statusfp2