Rounds the value of a TdDecimal to a specified decimal position or to the nearest integer.
Overload List
Overload | Description |
Round(TdDecimal,Int32) |
The number nearest the specified TdDecimal’s value and position is calculated.
|
Round(TdDecimal) |
The integer nearest the TdDecimal’s value is calculated.
|
Round(TdDecimal,MidpointRounding) |
This method calculates the integer nearest the specified input.
A parameter is used to specify how the number is rounded if the result
is between two numbers.
|
Round(TdDecimal,Int32,MidpointRounding) |
The number nearest the specified TdDecimal’s value and position is calculated. The mode is
used to determine how the reslt will be rounded if it is midway between two other numbers.
|
Requirements
Product | Versions | Platforms |
.NET | 2.1, 3.1, 6 | Windows, Linux, MacOS |
.NET Framework | 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
.NET Standard | 2.0 | Windows, Linux, MacOS |
See Also