RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.GetRoundMode Function

Returns the FPU rounding mode.

Pascal
function GetRoundMode: TFPURoundingMode;
C++
TFPURoundingMode GetRoundMode();

Math

Call GetRoundingMode to ascertain how the FPU handles rounding issues. The rounding mode can be any 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.  

 

Set8087CW 

SetRoundMode

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