System.Math.TFPUPrecisionMode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TFPUPrecisionMode = (pmSingle, pmReserved, pmDouble, pmExtended) platform;

C++

enum DECLSPEC_DENUM 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.



See Also