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.Min

Returns the smaller of two Decimal values.

[Visual Basic]
Public Shared Function Min( _
   ByVal d1 As Decimal, _
   ByVal d2 As Decimal _
) As Decimal
[C#]
public static Decimal Min(
   Decimal d1,
   Decimal d2
);
[C++]
public: static Decimal Min(
   Decimal d1,
   Decimal d2
);
[JScript]
public static function Min(
   d1 : Decimal,
   d2 : Decimal
) : Decimal;

Parameters

d1
The first Decimal.
d2
The second Decimal.

Return Value

The smaller of the two Decimal arguments.

Remarks

The Min method compares two Decimal values and returns the smaller of the two arguments by using the following:

Compare(d1, d2) < 0? d1: d2;

See Also

Decimal Structure | Decimal Members | System Namespace