System.Default8087CW

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

Default8087CW: Word platform = {$IF Defined(OSX)}$1333{$ELSE}$1332{$ENDIF};

C++

extern DELPHI_PACKAGE Word Default8087CW;

Properties

Type Visibility Source Unit Parent
variable public
System.pas
System.hpp
System System

Description

Specifies the Default 8087 control word.

Default8087CW is the value to which the Floating Point Unit (FPU) control register is set. The FPU control word includes bits that control the FPU's precision, rounding mode, and whether exceptions generate signals if they occur. See the documentation of the Intel processor for details.

The Set8087CW procedure allows the programmer to have direct access to Default8087CW. Setting the floating-point precision and rounding mechanism can be useful if you are reusing old code that is sensitive to the floating-point precision standard used. However, be aware that using this procedure to change the value of the 8087CW will change the behavior of the program's FP calculations. It is the programmer's responsibility to reset it.

See Also


Code Examples