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

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdDecimal Structure
TdDecimal Members
Overload List