Show: Delphi
C++
Display Preferences
System.Math.TFPUPrecisionMode
From XE2 API Documentation
Delphi
type TFPUPrecisionMode = (pmSingle, pmReserved, pmDouble, pmExtended)
C++
enum TFPUPrecisionMode : unsigned char { pmSingle, pmReserved, pmDouble, pmExtended };
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| enum | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Description
TFPUPrecisionMode defines how the FPU handles precision.
The FPU (Floating Point Unit) handles floating point calculations. GetPrecisionMode is used to read, and SetPrecisionMode is used to set the precision control mode, with TFPUPrecisionMode defining this mode.
TFPUPrecisionMode can be one of the following values :
| Value | Meaning |
|---|---|
|
pmSingle |
Single precision : 7 significant digits, exponent from -38 to +38. |
|
pmReserved |
Reserved for future use. |
|
pmDouble |
Double precision : 15 significant digits, exponent from -308 to +308. |
|
pmExtended |
Extended precision : 19 significant digits, exponent from -4932 to +4932. |