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



Teradata.Client.Provider Namespace > TdDecimal Structure > Round Method : Round(TdDecimal,MidpointRounding) Method
The TdDecimal that is to be rounded.
Indicates how to round the input if it is midway between two numbers.
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.
Syntax
'Declaration
 
Public Overloads Shared Function Round( _
   ByVal input As TdDecimal, _
   ByVal mode As MidpointRounding _
) As TdDecimal
'Usage
 
Dim input As TdDecimal
Dim mode As MidpointRounding
Dim value As TdDecimal
 
value = TdDecimal.Round(input, mode)
public static TdDecimal Round( 
   TdDecimal input,
   MidpointRounding mode
)
public:
static TdDecimal Round( 
   TdDecimal input,
   MidpointRounding mode
) 

Parameters

input
The TdDecimal that is to be rounded.
mode
Indicates how to round the input if it is midway between two numbers.

Return Value

The result of the round operation is returned as a TdDecimal
Exceptions
ExceptionDescription
mode is not a MidPointRounding value.
The result is not supported by TdDecimal.
Remarks
Refer to MidpointRounding and 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