asp.net.ph

Math.Max Method ( Single, Single )

System Namespace   Math Class


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

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

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

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

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

Parameters

val1
The first of two single-precision floating-point numbers to compare.
val2
The second of two single-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