asp.net.ph

Math.Max Method ( Double, Double )

System Namespace   Math Class


Returns the smaller of two double-precision floating-point numbers.

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

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

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

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

Parameters

val1
The first of two double-precision floating-point numbers to compare.
val2
The second of two double-precision floating-point numbers to compare.

Return Value

Parameter val1 or val2, whichever is smaller. If val1 or val2 exclusively is equal to NaN, the other value is returned. If both val1 and val2 are equal to NaN, NaN is returned.

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