RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.TRoundToRange Type

TRoundToRange defines the RoundTo rounding limits.

Pascal
TRoundToRange = -37..37;
C++
-37..37 TRoundToRange;

Math

The RoundTo routine rounds a floating-point value to a specified digit or power of ten using "Banker's rounding". A negative TRoundToRange value rounds to this number of decimal places. A positive value removes all decimal places, and zeroes this number of significant digits to the left of the decimal point. Banker's rounding always rounds down to an even value last digit when it has a choice. 

 

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