Returns the largest of two numbers using IEEE-754r semantics.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static double Max(
double x,
double y
)
Public Shared Function Max (
x As Double,
y As Double
) As Double
public:
static double Max(
double x,
double y
)
static member Max :
x : float *
y : float -> float
Parameters
- x
- Type: SystemDouble
A real number. - y
- Type: SystemDouble
A real number.
Return Value
Type:
DoubleThe larger of
x and
y.
In accordance with IEEE-754r, NaN is returned only if both
x and y are NaN.
This behavior is different from the Max(Double, Double) function
in the Base Class Libraries.
Reference