Elementary.Max(Single, Single, Single) Method

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

Definition

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

Parameters

x  Single
A real number.
y  Single
A real number.
z  Single
A real number.

Return Value

Single
The larger of x, y, and z.

Remarks

In accordance with IEEE-754r, NaN is returned only if x, y and z are all NaN. This behavior is different from the Max(Single, Single) function in the Base Class Libraries.

See Also