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



Teradata.Client.Provider Namespace > TdDecimal Structure : Divide Method
A TdDecimal.
A TdDecimal.
Calculates the results of dividing the first TdDecimal operand by the second.
Syntax
'Declaration
 
Public Shared Function Divide( _
   ByVal enumerator As TdDecimal, _
   ByVal denominator As TdDecimal _
) As TdDecimal
'Usage
 
Dim enumerator As TdDecimal
Dim denominator As TdDecimal
Dim value As TdDecimal
 
value = TdDecimal.Divide(enumerator, denominator)
public static TdDecimal Divide( 
   TdDecimal enumerator,
   TdDecimal denominator
)
public:
static TdDecimal Divide( 
   TdDecimal enumerator,
   TdDecimal denominator
) 

Parameters

enumerator
A TdDecimal.
denominator
A TdDecimal.

Return Value

The TdDecimal containing the result
Exceptions
ExceptionDescription
An attempt to divide by 0 was made.
The result has a precision greater than the TdDecimal.MaxPrecision.
Remarks
If one of the parameter is TdDecimal.Null, the result will be TdDecimal.Null.

Please refer to TdDecimal.op_Division for more information.

Example
Please refer to the TdDecimal.op_Division for divide examples.
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