RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.SetRoundMode Function

Sets the FPU rounding mode.

Pascal
function SetRoundMode(const RoundMode: TFPURoundingMode): TFPURoundingMode;
C++
TFPURoundingMode SetRoundMode(const TFPURoundingMode RoundMode);

Math

Call SetRoundingMode to specify 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 

GetRoundMode

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