System Namespace Math Class
Returns the larger 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;
- val1
- The first of two double-precision floating-point numbers to compare.
- val2
- The second of two double-precision floating-point numbers to compare.
Parameter val1 or val2, whichever is larger. 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.
Math Members Math.Max Overload List