Show: Delphi C++
Display Preferences

Floating-Point Number Control Routines

From RAD Studio
Jump to: navigation, search

Go Up to Using Floating-Point Routines

Go Up to API Categories Index


This topic lists all routines and variables used to control the FPU state.

Routine Description
System.Math.GetExceptions Retrieves the set of active floating-point exceptions.
System.Math.SetExceptions Sets the specified floating-point exceptions to be active.
System.Math.GetExceptionMask Returns the exception mask from the current floating-point hardware.
System.Math.SetExceptionMask Sets the exception mask on the floating-point-number hardware.
System.Math.ClearExceptions Clears the specified floating-point number's cumulative exception flags and raises the errors for pending exceptions if RaisePending is True.
System.Math.RaiseExceptions Clears the specified floating-point number's cumulative exception flags and raises the errors for pending exceptions.
System.Math.GetPrecisionMode Returns the FPU precision control mode.
System.Math.SetPrecisionMode Sets the FPU precision control mode.
System.Math.GetRoundMode Returns the current floating-point rounding mode.
System.Math.SetRoundMode Sets the rounding mode for floating point calculations.
System.TestSSE Represents the supported SSE (Streaming SIMD Extensions) version.
System.Get8087CW Returns the value of the 8087 control word.
System.Set8087CW Sets the control word in the the Intel X87 FPU.
System.Reset8087CW Sets the 8087 (FPU) control word to Default8087CW.
System.SetMXCSR Sets the MXCSR register in the SSE.
Note: To change the exception mode, the rounding mode, and the precision for floating-point numbers, we recommend that you use System.Math.SetExceptionMask, System.Math.SetRoundMode, and System.Math.SetPrecisionMode instead of System.Set8087CW, System.SetMXCSR, or _control87, _controlfp.


See Also

Code Examples

Personal tools
In other languages
Previous Versions
Assistance