System.Math.SetPrecisionMode
From RAD Studio API Documentation
Delphi
function SetPrecisionMode(const Precision: TFPUPrecisionMode): TFPUPrecisionMode;
C++
extern DELPHI_PACKAGE TFPUPrecisionMode __fastcall SetPrecisionMode(const TFPUPrecisionMode Precision);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Description
Sets the FPU precision control mode.
Call SetPrecisionMode to specify the level of precision that the FPU (floating-point unit) uses for floating-point calculations. The precision control mode can be any of the following values:
| Value | Meaning |
|---|---|
|
pmSingle |
single precision |
|
pmReserved |
not used |
|
pmDouble |
double precision |
|
pmExtended |
extended precision |
SetPrecisionMode returns the previous precision control mode.