System.Math.TRoundingMode
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 |
---|---|
|
Rounds to the closest integer value. |
|
Rounds toward negative infinity. |
|
Rounds toward positive infinity. |
|
Truncates the value, rounding positive numbers down and negative numbers up. |
See Also
- System.Math.SetRoundMode
- System.Math.GetRoundMode
- Floating-Point Number Control Routines
- About Floating-Point Arithmetic
- Floating-Point Rounding Routines