System.Math.TRoundToRange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

type TRoundToRange = -37..37;

C++

typedef System::Int8 TRoundToRange;

Properties

Type Visibility Source Unit Parent
type
typedef
public
System.Math.pas
System.Math.hpp
System.Math System.Math

Description

TRoundToRange defines the RoundTo rounding limits.

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.

See Also