Show: Delphi C++
Display Preferences

System.Math.TRoundingMode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TRoundingMode = (rmNearest, rmDown, rmUp, rmTruncate);

C++

enum DECLSPEC_DENUM TRoundingMode : unsigned char { rmNearest, rmDown, rmUp, rmTruncate };

Properties

Type Visibility Source Unit Parent
enum public
System.Math.pas
System.Math.hpp
System.Math System.Math

Description

Enumerates the floating-point rounding modes.

TRoundingModedefines the following values.

Value Meaning

rmNearest

Rounds to the closest integer value.

rmDown

Rounds toward negative infinity.

rmUp

Rounds toward positive infinity.

rmTruncate

Truncates the value, rounding positive numbers down and negative numbers up.

See Also

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance