Send feedback on this topic.
Teradata.Client.Provider
Round(TdDecimal) Method



Teradata.Client.Provider Namespace > TdDecimal Structure > Round Method : Round(TdDecimal) Method
The TdDecimal that is to be rounded.
The integer nearest the TdDecimal’s value is calculated.
Syntax
'Declaration
 
Public Overloads Shared Function Round( _
   ByVal input As TdDecimal _
) As TdDecimal
'Usage
 
Dim input As TdDecimal
Dim value As TdDecimal
 
value = TdDecimal.Round(input)
public static TdDecimal Round( 
   TdDecimal input
)
public:
static TdDecimal Round( 
   TdDecimal input
) 

Parameters

input
The TdDecimal that is to be rounded.

Return Value

The result of the round operation is returned as a TdDecimal
Exceptions
ExceptionDescription
Position is less than 0 or greater than 38.
The result is not supported by TdDecimal.
The result is not supported by TdDecimal.
Remarks
By default, the behavior of the rounding is to round MidpointRounding.ToEven. Refer to TdDecimal.Round for more information on rounding behavior.
Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdDecimal Structure
TdDecimal Members
Overload List