NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Math.Max

Returns the maximum of two numbers.

Overload List

Returns the larger of two numbers.

[Visual Basic] Overloads Public Shared Function Max(Double, Double) As Double
[C#] public static double Max(double, double);
[C++] public: static double Max(double, double);
[JScript] public static function Max(double, double) : double;

Returns the larger of two numbers.

[Visual Basic] Overloads Public Shared Function Max(Integer, Integer) As Short
[C#] public static short Max(short, short);
[C++] public: static short Max(short, short);
[JScript] public static function Max(Int16, Int16) : Int16;

Returns the larger of two numbers.

[Visual Basic] Overloads Public Shared Function Max(UInt16, UInt16) As UInt16
[C#] public static ushort Max(ushort, ushort);
[C++] public: static unsigned short Max(unsigned short, unsigned short);
[JScript] public static function Max(UInt16, UInt16) : UInt16;

Returns the larger of two numbers.

[Visual Basic] Overloads Public Shared Function Max(Single, Single) As Single
[C#] public static float Max(float, float);
[C++] public: static float Max(float, float);
[JScript] public static function Max(float, float) : float;

Returns the larger of two numbers.

[Visual Basic] Overloads Public Shared Function Max(Long, Long) As Long
[C#] public static long Max(long, long);
[C++] public: static __int64 Max(__int64, __int64);
[JScript] public static function Max(long, long) : long;

Returns the larger of two numbers.

[Visual Basic] Overloads Public Shared Function Max(UInt32, UInt32) As UInt32
[C#] public static uint Max(uint, uint);
[C++] public: static unsigned int Max(unsigned int, unsigned int);
[JScript] public static function Max(UInt32, UInt32) : UInt32;

Returns the larger of two numbers.

[Visual Basic] Overloads Public Shared Function Max(Integer, Integer) As Integer
[C#] public static int Max(int, int);
[C++] public: static int Max(int, int);
[JScript] public static function Max(int, int) : int;

Returns the larger of two numbers.

[Visual Basic] Overloads Public Shared Function Max(UInt64, UInt64) As UInt64
[C#] public static ulong Max(ulong, ulong);
[C++] public: static unsigned __int64 Max(unsigned __int64, unsigned __int64);
[JScript] public static function Max(UInt64, UInt64) : UInt64;

Returns the larger of two numbers.

[Visual Basic] Overloads Public Shared Function Max(SByte, SByte) As SByte
[C#] public static sbyte Max(sbyte, sbyte);
[C++] public: static char Max(char, char);
[JScript] public static function Max(SByte, SByte) : SByte;

Returns the larger of two numbers.

[Visual Basic] Overloads Public Shared Function Max(Byte, Byte) As Byte
[C#] public static byte Max(byte, byte);
[C++] public: static unsigned char Max(unsigned char, unsigned char);
[JScript] public static function Max(Byte, Byte) : Byte;

See Also

Math Class | Math Members | System Namespace