NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Decimal.Max

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;

Parameters

d1
The first Decimal.
d2
The second Decimal.

Return Value

The larger of the two Decimal arguments.

Remarks

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;

See Also

Decimal Structure | Decimal Members | System Namespace