Adds two Decimal values.
[Visual Basic] Public Shared Function Add( _ ByVal d1 As Decimal, _ ByVal d2 As Decimal _ ) As Decimal [C#] public static Decimal Add( Decimal d1, Decimal d2 ); [C++] public: static Decimal Add( Decimal d1, Decimal d2 ); [JScript] public static function Add( d1 : Decimal, d2 : Decimal ) : Decimal;
The sum of two decimal values.
Exception Type | Condition |
---|---|
OverflowException | is thrown if the sum of the numbers are too large to represent as a Decimal. |
The Addition method performs an arithmetic function by adding two Decimal values and returns the sum of the two values (d1 + d.).