RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.TFPURoundingMode Enumeration

TFPURoundingMode defines how the FPU handles rounding issues.

Pascal
TFPURoundingMode = (
  rmNearest,
  rmDown,
  rmUp,
  rmTruncate
);
C++
enum TFPURoundingMode {
  rmNearest,
  rmDown,
  rmUp,
  rmTruncate
};

Math

The FPU (Floating Point Unit) handles floating point calculations. GetRoundMode is used to read, and SetRoundMode is used to set the rounding mode, with TFPURoundingMode defining this mode.  

TFPURoundingMode can be one of the following values :

Value 
Meaning 
rmNearest  
Rounds to the closest value.  
rmDown  
Rounds toward negative infinity.  
rmUp  
Rounds toward positive infinity.  
rmTruncate  
Truncates the value, rounding positive numbers down and negative numbers up.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!