MathObject::max Method (Object^, Object^, array<Object^>^)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns the largest of two or more specified numbers.

Namespace:   Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public:
[JSFunctionAttribute(JSFunctionAttributeEnum::HasVarArgs, JSBuiltin::Math_max)]
static double max(
	Object^ x,
	Object^ y,
	... array<Object^>^ args
)

Parameters

x
Type: System::Object^

The first number to compare.

y
Type: System::Object^

The second number to compare.

args
Type: array<System::Object^>^

Additional numbers to compare.

Return Value

Type: System::Double

The largest of x, y, and the numbers that are contained in args.

.NET Framework
Available since 1.1
Return to top
Show: