Elementary.Max(Double, Double) Method

Returns the largest of two numbers using IEEE-754r semantics.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static double Max(
	double x,
	double y
)

Parameters

x  Double
A real number.
y  Double
A real number.

Return Value

Double
The larger of x and y.

Remarks

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.

See Also