RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.TFPUPrecisionMode Enumeration

TFPUPrecisionMode defines how the FPU handles precision.

Pascal
TFPUPrecisionMode = (
  pmSingle,
  pmReserved,
  pmDouble,
  pmExtended
);
C++
enum TFPUPrecisionMode {
  pmSingle,
  pmReserved,
  pmDouble,
  pmExtended
};

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.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!