Share via


Max Method (Double, Double)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Shared Function Max ( _
    x As Double, _
    y As Double _
) As Double
public static double Max(
    double x,
    double y
)
public:
static double Max(
    double x, 
    double y
)
static member Max : 
        x:float * 
        y:float -> float 
public static function Max(
    x : double, 
    y : double
) : double

Parameters

Return Value

Type: System. . :: . .Double
Parameter x or y, whichever is larger. If x, y, or both x and y are equal to NaN, NaN is returned.

.NET Framework Security

See Also

Reference

Math Class

Max Overload

System Namespace