Send feedback on this topic.
Teradata.Client.Provider
Multiplication Operator (TdNumber)
Example 



Teradata.Client.Provider Namespace > TdNumber Structure : Multiplication Operator
The left operand of the multiply operation.
The right operand of the multiply operation.
The arithmetic product of two TdNumbers is calculated.
Syntax
'Declaration
 
Public Operator *( _
   ByVal left As TdNumber, _
   ByVal right As TdNumber _
) As TdNumber
'Usage
 
public TdNumber operator *( 
   TdNumber left,
   TdNumber right
)
public:
TdNumber operator *( 
   TdNumber left,
   TdNumber right
)

Parameters

left
The left operand of the multiply operation.
right
The right operand of the multiply operation.

Return Value

A TdNumber structure is returned whose value property contains the product of the left and right operands.
Exceptions
ExceptionDescription

The result is not in the range (between TdNumber.MinValue and TdNumber.MaxValue) of a TdNumber, or the exponent is less than -130.

Remarks

The result will be TdNumber.Null if one of the parameter is TdNumber.Null.

Example
The following are multiplication examples:
TdNumber right01 = TdNumber.Parse("1e-39");
TdNumber result01 = TdNumber.MaxValue * right01;
Console.WriteLine("{0} * {1} = {2}", TdNumber.MaxValue, right01, result01);
// result = 9.999999999999999999999999999999999999999e86
            
TdNumber left02 = TdNumber.Parse("7922816253271108167.1548469249");
TdNumber right02 = TdNumber.Parse("50");
TdNumber result02 = left02 * right02;
Console.WriteLine("{0} * {1} = {2}", left02, right02, result02);
// result = 3.96140812663555408357742346245e20
Requirements

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

See Also

Reference

TdNumber Structure
TdNumber Members