Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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
- x
Type: System. . :: . .Double
The first of two double-precision floating-point numbers to compare.
- y
Type: System. . :: . .Double
The second of two double-precision floating-point numbers to compare.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.