asp.net.ph

Math.Max Method ( Decimal, Decimal )

System Namespace   Math Class


Returns the larger of two decimal numbers.

[ VB ]
Overloads Public Shared Function Max ( _
   ByVal val1 As Decimal, _
   ByVal val2 As Decimal _
) As Decimal

[ C# ]
public static decimal Max (
   decimal val1,
   decimal val2
);

[ C++ ]
public: static Decimal Max (
   Decimal val1,
   Decimal val2
);

[ JScript ]
public static function Max (
   val1 : Decimal,
   val2 : Decimal
) : Decimal;

Parameters

val1
The first of two Decimal numbers to compare.
val2
The second of two Decimal numbers to compare.

Return Value

Parameter val1 or val2, whichever is larger.

See Also

Math Members   Math.Max Overload List Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph