Returns the larger of two Decimal values.
[Visual Basic] Public Shared Function Max( _ ByVal d1 As Decimal, _ ByVal d2 As Decimal _ ) As Decimal [C#] public static Decimal Max( Decimal d1, Decimal d2 ); [C++] public: static Decimal Max( Decimal d1, Decimal d2 ); [JScript] public static function Max( d1 : Decimal, d2 : Decimal ) : Decimal;
The larger of the two Decimal arguments.
The Max method compares two Decimal values and returns the larger of the two arguments by using the following:
Compare(d1, d2) >= 0? d1: d2;