Math.Max Methode

Definition

Gibt die größere von zwei angegebenen Zahlen zurück.

Überlädt

Max(UIntPtr, UIntPtr)

Gibt die größere von zwei nativen ganzen Zahlen ohne Vorzeichen zurück.

Max(UInt32, UInt32)

Gibt die größere von zwei 32-Bit-Ganzzahlen ohne Vorzeichen zurück.

Max(UInt16, UInt16)

Gibt die größere von zwei 16-Bit-Ganzzahlen ohne Vorzeichen zurück.

Max(Single, Single)

Gibt die größere von zwei Gleitkommazahlen mit einfacher Genauigkeit zurück.

Max(SByte, SByte)

Gibt die größere von zwei 8-Bit-Ganzzahlen mit Vorzeichen zurück.

Max(IntPtr, IntPtr)

Gibt die größere von zwei systemeigenen ganzen Zahlen mit Vorzeichen zurück.

Max(UInt64, UInt64)

Gibt die größere von zwei 64-Bit-Ganzzahlen ohne Vorzeichen zurück.

Max(Int32, Int32)

Gibt die größere von zwei 32-Bit-Ganzzahlen mit Vorzeichen zurück.

Max(Int16, Int16)

Gibt die größere von zwei 16-Bit-Ganzzahlen mit Vorzeichen zurück.

Max(Double, Double)

Gibt die größere von zwei Gleitkommazahlen mit doppelter Genauigkeit zurück.

Max(Decimal, Decimal)

Gibt die größere von zwei Decimal-Zahlen zurück.

Max(Byte, Byte)

Gibt die größere von zwei 8-Bit-Ganzzahlen ohne Vorzeichen zurück.

Max(Int64, Int64)

Gibt die größere von zwei 64-Bit-Ganzzahlen mit Vorzeichen zurück.

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie die Max -Methode verwendet wird, um die größere von zwei Variablen zurückzugeben und anzuzeigen:

// This example demonstrates Math.Max()
using namespace System;
int main()
{
   String^ str = "{0}: The greater of {1,3} and {2,3} is {3}.";
   String^ nl = Environment::NewLine;
   Byte xByte1 = 1,xByte2 = 51;
   short xShort1 = -2,xShort2 = 52;
   int xInt1 = -3,xInt2 = 53;
   long xLong1 = -4,xLong2 = 54;
   float xSingle1 = 5.0f,xSingle2 = 55.0f;
   double xDouble1 = 6.0,xDouble2 = 56.0;
   Decimal xDecimal1 = 7,xDecimal2 = 57;
   
   // The following types are not CLS-compliant.
   SByte xSbyte1 = 101,xSbyte2 = 111;
   UInt16 xUshort1 = 102,xUshort2 = 112;
   UInt32 xUint1 = 103,xUint2 = 113;
   UInt64 xUlong1 = 104,xUlong2 = 114;
   Console::WriteLine( "{0}Display the greater of two values:{0}", nl );
   Console::WriteLine( str, "Byte   ", xByte1, xByte2, Math::Max( xByte1, xByte2 ) );
   Console::WriteLine( str, "Int16  ", xShort1, xShort2, Math::Max( xShort1, xShort2 ) );
   Console::WriteLine( str, "Int32  ", xInt1, xInt2, Math::Max( xInt1, xInt2 ) );
   Console::WriteLine( str, "Int64  ", xLong1, xLong2, Math::Max( xLong1, xLong2 ) );
   Console::WriteLine( str, "Single ", xSingle1, xSingle2, Math::Max( xSingle1, xSingle2 ) );
   Console::WriteLine( str, "Double ", xDouble1, xDouble2, Math::Max( xDouble1, xDouble2 ) );
   Console::WriteLine( str, "Decimal", xDecimal1, xDecimal2, Math::Max( xDecimal1, xDecimal2 ) );
   
   //
   Console::WriteLine( "{0}The following types are not CLS-compliant.{0}", nl );
   Console::WriteLine( str, "SByte  ", xSbyte1, xSbyte2, Math::Max( xSbyte1, xSbyte2 ) );
   Console::WriteLine( str, "UInt16 ", xUshort1, xUshort2, Math::Max( xUshort1, xUshort2 ) );
   Console::WriteLine( str, "UInt32 ", xUint1, xUint2, Math::Max( xUint1, xUint2 ) );
   Console::WriteLine( str, "UInt64 ", xUlong1, xUlong2, Math::Max( xUlong1, xUlong2 ) );
}

/*
This example produces the following results:

Display the greater of two values:

Byte   : The greater of   1 and  51 is 51.
Int16  : The greater of  -2 and  52 is 52.
Int32  : The greater of  -3 and  53 is 53.
Int64  : The greater of  -4 and  54 is 54.
Single : The greater of   5 and  55 is 55.
Double : The greater of   6 and  56 is 56.
Decimal: The greater of   7 and  57 is 57.

(The following types are not CLS-compliant.)

SByte  : The greater of 101 and 111 is 111.
UInt16 : The greater of 102 and 112 is 112.
UInt32 : The greater of 103 and 113 is 113.
UInt64 : The greater of 104 and 114 is 114.
*/
string str = "{0}: The greater of {1,3} and {2,3} is {3}.";

byte     xByte1    = 1,    xByte2    = 51;	
short    xShort1   = -2,   xShort2   = 52;
int      xInt1     = -3,   xInt2     = 53;
long     xLong1    = -4,   xLong2    = 54;
float    xSingle1  = 5.0f, xSingle2  = 55.0f;
double   xDouble1  = 6.0,  xDouble2  = 56.0;
Decimal  xDecimal1 = 7m,   xDecimal2 = 57m;

// The following types are not CLS-compliant.
sbyte    xSbyte1   = 101, xSbyte2  = 111;
ushort   xUshort1  = 102, xUshort2 = 112;
uint     xUint1    = 103, xUint2   = 113;
ulong    xUlong1   = 104, xUlong2  = 114;

Console.WriteLine("Display the greater of two values:\n");
Console.WriteLine(str, "Byte   ", xByte1, xByte2, Math.Max(xByte1, xByte2));
Console.WriteLine(str, "Int16  ", xShort1, xShort2, Math.Max(xShort1, xShort2));
Console.WriteLine(str, "Int32  ", xInt1, xInt2, Math.Max(xInt1, xInt2));
Console.WriteLine(str, "Int64  ", xLong1, xLong2, Math.Max(xLong1, xLong2));
Console.WriteLine(str, "Single ", xSingle1, xSingle2, Math.Max(xSingle1, xSingle2));
Console.WriteLine(str, "Double ", xDouble1, xDouble2, Math.Max(xDouble1, xDouble2));
Console.WriteLine(str, "Decimal", xDecimal1, xDecimal2, Math.Max(xDecimal1, xDecimal2));

Console.WriteLine("\nThe following types are not CLS-compliant.\n");
Console.WriteLine(str, "SByte  ", xSbyte1, xSbyte2, Math.Max(xSbyte1, xSbyte2));
Console.WriteLine(str, "UInt16 ", xUshort1, xUshort2, Math.Max(xUshort1, xUshort2));
Console.WriteLine(str, "UInt32 ", xUint1, xUint2, Math.Max(xUint1, xUint2));
Console.WriteLine(str, "UInt64 ", xUlong1, xUlong2, Math.Max(xUlong1, xUlong2));

/*
This example produces the following results:

Display the greater of two values:

Byte   : The greater of   1 and  51 is 51.
Int16  : The greater of  -2 and  52 is 52.
Int32  : The greater of  -3 and  53 is 53.
Int64  : The greater of  -4 and  54 is 54.
Single : The greater of   5 and  55 is 55.
Double : The greater of   6 and  56 is 56.
Decimal: The greater of   7 and  57 is 57.

(The following types are not CLS-compliant.)

SByte  : The greater of 101 and 111 is 111.
UInt16 : The greater of 102 and 112 is 112.
UInt32 : The greater of 103 and 113 is 113.
UInt64 : The greater of 104 and 114 is 114.
*/
open System

let print typ a b m = 
    printfn $"{typ}: The greater of {a,3} and {b,3} is {m}."

let xByte1,    xByte2    = 1uy, 51uy
let xShort1,   xShort2   = -2s, 52s
let xInt1,     xInt2     = -3,  53
let xLong1,    xLong2    = -4L, 54L
let xSingle1,  xSingle2  = 5f,  55f
let xDouble1,  xDouble2  = 6.,  56.
let xDecimal1, xDecimal2 = 7m,  57m

// The following types are not CLS-compliant.
let xSbyte1, xSbyte2   = 101y,  111y
let xUshort1, xUshort2 = 102us, 112us
let xUint1, xUint2     = 103u,  113u
let xUlong1, xUlong2   = 104uL, 114uL

printfn "Display the greater of two values:\n"
print "Byte   " xByte1 xByte2 (Math.Max(xByte1, xByte2))
print "Int16  " xShort1 xShort2 (Math.Max(xShort1, xShort2))
print "Int32  " xInt1 xInt2 (Math.Max(xInt1, xInt2))
print "Int64  " xLong1 xLong2 (Math.Max(xLong1, xLong2))
print "Single " xSingle1 xSingle2 (Math.Max(xSingle1, xSingle2))
print "Double " xDouble1 xDouble2 (Math.Max(xDouble1, xDouble2))
print "Decimal" xDecimal1 xDecimal2 (Math.Max(xDecimal1, xDecimal2))

printfn "\nThe following types are not CLS-compliant.\n"
print "SByte  " xSbyte1 xSbyte2 (Math.Max(xSbyte1, xSbyte2))
print "UInt16 " xUshort1 xUshort2 (Math.Max(xUshort1, xUshort2))
print "UInt32 " xUint1 xUint2 (Math.Max(xUint1, xUint2))
print "UInt64 " xUlong1 xUlong2 (Math.Max(xUlong1, xUlong2))

// This example produces the following results:
//     Display the greater of two values:
//    
//     Byte   : The greater of   1 and  51 is 51.
//     Int16  : The greater of  -2 and  52 is 52.
//     Int32  : The greater of  -3 and  53 is 53.
//     Int64  : The greater of  -4 and  54 is 54.
//     Single : The greater of   5 and  55 is 55.
//     Double : The greater of   6 and  56 is 56.
//     Decimal: The greater of   7 and  57 is 57.
//    
//     (The following types are not CLS-compliant.)
//    
//     SByte  : The greater of 101 and 111 is 111.
//     UInt16 : The greater of 102 and 112 is 112.
//     UInt32 : The greater of 103 and 113 is 113.
//     UInt64 : The greater of 104 and 114 is 114.
' This example demonstrates Math.Max()
Class Sample
   Public Shared Sub Main()
      Dim str As String = "{0}: The greater of {1,3} and {2,3} is {3}."
      Dim nl As String = Environment.NewLine
      
      Dim xByte1 As Byte = 1
      Dim xByte2 As Byte = 51
      Dim xShort1 As Short = - 2
      Dim xShort2 As Short = 52
      Dim xInt1 As Integer = - 3
      Dim xInt2 As Integer = 53
      Dim xLong1 As Long = - 4
      Dim xLong2 As Long = 54
      Dim xSingle1 As Single = 5F
      Dim xSingle2 As Single = 55F
      Dim xDouble1 As Double = 6.0
      Dim xDouble2 As Double = 56.0
      Dim xDecimal1 As [Decimal] = 7D
      Dim xDecimal2 As [Decimal] = 57D
      
      ' The following types are not CLS-compliant.
      Dim xSByte1 As SByte = 101
      Dim xSByte2 As SByte = 111
      Dim xUShort1 As UShort = 102
      Dim xUShort2 As UShort = 112
      Dim xUint1 As UInteger = 103
      Dim xUint2 As UInteger = 113
      Dim xUlong1 As ULong = 104
      Dim xUlong2 As ULong = 114
      
      Console.WriteLine("{0}Display the greater of two values:{0}", nl)
      Console.WriteLine(str, "Byte   ", xByte1, xByte2, Math.Max(xByte1, xByte2))
      Console.WriteLine(str, "Int16  ", xShort1, xShort2, Math.Max(xShort1, xShort2))
      Console.WriteLine(str, "Int32  ", xInt1, xInt2, Math.Max(xInt1, xInt2))
      Console.WriteLine(str, "Int64  ", xLong1, xLong2, Math.Max(xLong1, xLong2))
      Console.WriteLine(str, "Single ", xSingle1, xSingle2, Math.Max(xSingle1, xSingle2))
      Console.WriteLine(str, "Double ", xDouble1, xDouble2, Math.Max(xDouble1, xDouble2))
      Console.WriteLine(str, "Decimal", xDecimal1, xDecimal2, Math.Max(xDecimal1, xDecimal2))
      '
      Console.WriteLine("{0}(The following types are not CLS-compliant.){0}", nl)
      Console.WriteLine(str, "SByte  ", xSByte1, xSByte2, Math.Max(xSByte1, xSByte2))
      Console.WriteLine(str, "UInt16 ", xUShort1, xUShort2, Math.Max(xUShort1, xUShort2))
      Console.WriteLine(str, "UInt32 ", xUint1, xUint2, Math.Max(xUint1, xUint2))
      Console.WriteLine(str, "UInt64 ", xUlong1, xUlong2, Math.Max(xUlong1, xUlong2))
   End Sub
End Class
'
'This example produces the following results:
'
'Display the greater of two values:
'
'Byte   : The greater of   1 and  51 is 51.
'Int16  : The greater of  -2 and  52 is 52.
'Int32  : The greater of  -3 and  53 is 53.
'Int64  : The greater of  -4 and  54 is 54.
'Single : The greater of   5 and  55 is 55.
'Double : The greater of   6 and  56 is 56.
'Decimal: The greater of   7 and  57 is 57.
'
' (The following types are not CLS-compliant.)
' 
' SByte  : The greater of 101 and 111 is 111.
' UInt16 : The greater of 102 and 112 is 112.
' UInt32 : The greater of 103 and 113 is 113.
' UInt64 : The greater of 104 and 114 is 114.

Max(UIntPtr, UIntPtr)

Source:
Math.cs
Source:
Math.cs
Source:
Math.cs

Wichtig

Diese API ist nicht CLS-kompatibel.

Gibt die größere von zwei nativen ganzen Zahlen ohne Vorzeichen zurück.

public:
 static UIntPtr Max(UIntPtr val1, UIntPtr val2);
[System.CLSCompliant(false)]
public static nuint Max (nuint val1, nuint val2);
[System.CLSCompliant(false)]
public static UIntPtr Max (UIntPtr val1, UIntPtr val2);
[<System.CLSCompliant(false)>]
static member Max : unativeint * unativeint -> unativeint
Public Shared Function Max (val1 As UIntPtr, val2 As UIntPtr) As UIntPtr

Parameter

val1
UIntPtr

nuint

unativeint

Die erste von zwei nativen ganzen Zahlen ohne Vorzeichen, die verglichen werden sollen.

val2
UIntPtr

nuint

unativeint

Die zweite von zwei nativen ganzen Zahlen ohne Vorzeichen, die verglichen werden sollen.

Gibt zurück

UIntPtr

nuint

unativeint

Der größere der Parameter val1 und val2.

Attribute

Gilt für:

Max(UInt32, UInt32)

Source:
Math.cs
Source:
Math.cs
Source:
Math.cs

Wichtig

Diese API ist nicht CLS-kompatibel.

Gibt die größere von zwei 32-Bit-Ganzzahlen ohne Vorzeichen zurück.

public:
 static System::UInt32 Max(System::UInt32 val1, System::UInt32 val2);
[System.CLSCompliant(false)]
public static uint Max (uint val1, uint val2);
[<System.CLSCompliant(false)>]
static member Max : uint32 * uint32 -> uint32
Public Shared Function Max (val1 As UInteger, val2 As UInteger) As UInteger

Parameter

val1
UInt32

Die erste von zwei zu vergleichenden 32-Bit-Ganzzahlen ohne Vorzeichen.

val2
UInt32

Die zweite von zwei zu vergleichenden 32-Bit-Ganzzahlen ohne Vorzeichen.

Gibt zurück

Der größere der Parameter val1 und val2.

Attribute

Gilt für:

Max(UInt16, UInt16)

Source:
Math.cs
Source:
Math.cs
Source:
Math.cs

Wichtig

Diese API ist nicht CLS-kompatibel.

Gibt die größere von zwei 16-Bit-Ganzzahlen ohne Vorzeichen zurück.

public:
 static System::UInt16 Max(System::UInt16 val1, System::UInt16 val2);
[System.CLSCompliant(false)]
public static ushort Max (ushort val1, ushort val2);
[<System.CLSCompliant(false)>]
static member Max : uint16 * uint16 -> uint16
Public Shared Function Max (val1 As UShort, val2 As UShort) As UShort

Parameter

val1
UInt16

Die erste von zwei zu vergleichenden 16-Bit-Ganzzahlen ohne Vorzeichen.

val2
UInt16

Die zweite von zwei zu vergleichenden 16-Bit-Ganzzahlen ohne Vorzeichen.

Gibt zurück

Der größere der Parameter val1 und val2.

Attribute

Gilt für:

Max(Single, Single)

Source:
Math.cs
Source:
Math.cs
Source:
Math.cs

Gibt die größere von zwei Gleitkommazahlen mit einfacher Genauigkeit zurück.

public:
 static float Max(float val1, float val2);
public static float Max (float val1, float val2);
static member Max : single * single -> single
Public Shared Function Max (val1 As Single, val2 As Single) As Single

Parameter

val1
Single

Die erste von zwei zu vergleichenden Gleitkommazahlen mit einfacher Genauigkeit.

val2
Single

Die zweite von zwei zu vergleichenden Gleitkommazahlen mit einfacher Genauigkeit.

Gibt zurück

Der größere der Parameter val1 und val2. Wenn entweder val1 oder val2 oder sowohl val1 als auch val2 gleich NaN ist, wird NaN zurückgegeben.

Gilt für:

Max(SByte, SByte)

Source:
Math.cs
Source:
Math.cs
Source:
Math.cs

Wichtig

Diese API ist nicht CLS-kompatibel.

Gibt die größere von zwei 8-Bit-Ganzzahlen mit Vorzeichen zurück.

public:
 static System::SByte Max(System::SByte val1, System::SByte val2);
[System.CLSCompliant(false)]
public static sbyte Max (sbyte val1, sbyte val2);
[<System.CLSCompliant(false)>]
static member Max : sbyte * sbyte -> sbyte
Public Shared Function Max (val1 As SByte, val2 As SByte) As SByte

Parameter

val1
SByte

Die erste von zwei zu vergleichenden 8-Bit-Ganzzahlen mit Vorzeichen.

val2
SByte

Die zweite von zwei zu vergleichenden 8-Bit-Ganzzahlen mit Vorzeichen.

Gibt zurück

Der größere der Parameter val1 und val2.

Attribute

Gilt für:

Max(IntPtr, IntPtr)

Source:
Math.cs
Source:
Math.cs
Source:
Math.cs

Gibt die größere von zwei systemeigenen ganzen Zahlen mit Vorzeichen zurück.

public:
 static IntPtr Max(IntPtr val1, IntPtr val2);
public static nint Max (nint val1, nint val2);
public static IntPtr Max (IntPtr val1, IntPtr val2);
static member Max : nativeint * nativeint -> nativeint
Public Shared Function Max (val1 As IntPtr, val2 As IntPtr) As IntPtr

Parameter

val1
IntPtr

nint

nativeint

Die erste von zwei nativen ganzen Zahlen mit Vorzeichen, die verglichen werden sollen.

val2
IntPtr

nint

nativeint

Die zweite von zwei nativen ganzen Zahlen mit Vorzeichen, die verglichen werden sollen.

Gibt zurück

IntPtr

nint

nativeint

Der größere der Parameter val1 und val2.

Gilt für:

Max(UInt64, UInt64)

Source:
Math.cs
Source:
Math.cs
Source:
Math.cs

Wichtig

Diese API ist nicht CLS-kompatibel.

Gibt die größere von zwei 64-Bit-Ganzzahlen ohne Vorzeichen zurück.

public:
 static System::UInt64 Max(System::UInt64 val1, System::UInt64 val2);
[System.CLSCompliant(false)]
public static ulong Max (ulong val1, ulong val2);
[<System.CLSCompliant(false)>]
static member Max : uint64 * uint64 -> uint64
Public Shared Function Max (val1 As ULong, val2 As ULong) As ULong

Parameter

val1
UInt64

Die erste von zwei zu vergleichenden 64-Bit-Ganzzahlen ohne Vorzeichen.

val2
UInt64

Die zweite von zwei zu vergleichenden 64-Bit-Ganzzahlen ohne Vorzeichen.

Gibt zurück

Der größere der Parameter val1 und val2.

Attribute

Gilt für:

Max(Int32, Int32)

Source:
Math.cs
Source:
Math.cs
Source:
Math.cs

Gibt die größere von zwei 32-Bit-Ganzzahlen mit Vorzeichen zurück.

public:
 static int Max(int val1, int val2);
public static int Max (int val1, int val2);
static member Max : int * int -> int
Public Shared Function Max (val1 As Integer, val2 As Integer) As Integer

Parameter

val1
Int32

Die erste von zwei zu vergleichenden 32-Bit-Ganzzahlen mit Vorzeichen.

val2
Int32

Die zweite von zwei zu vergleichenden 32-Bit-Ganzzahlen mit Vorzeichen.

Gibt zurück

Der größere der Parameter val1 und val2.

Gilt für:

Max(Int16, Int16)

Source:
Math.cs
Source:
Math.cs
Source:
Math.cs

Gibt die größere von zwei 16-Bit-Ganzzahlen mit Vorzeichen zurück.

public:
 static short Max(short val1, short val2);
public static short Max (short val1, short val2);
static member Max : int16 * int16 -> int16
Public Shared Function Max (val1 As Short, val2 As Short) As Short

Parameter

val1
Int16

Die erste von zwei zu vergleichenden 16-Bit-Ganzzahlen mit Vorzeichen.

val2
Int16

Die zweite von zwei zu vergleichenden 16-Bit-Ganzzahlen mit Vorzeichen.

Gibt zurück

Der größere der Parameter val1 und val2.

Gilt für:

Max(Double, Double)

Source:
Math.cs
Source:
Math.cs
Source:
Math.cs

Gibt die größere von zwei Gleitkommazahlen mit doppelter Genauigkeit zurück.

public:
 static double Max(double val1, double val2);
public static double Max (double val1, double val2);
static member Max : double * double -> double
Public Shared Function Max (val1 As Double, val2 As Double) As Double

Parameter

val1
Double

Die erste von zwei zu vergleichenden Gleitkommazahlen mit doppelter Genauigkeit.

val2
Double

Die zweite von zwei zu vergleichenden Gleitkommazahlen mit doppelter Genauigkeit.

Gibt zurück

Der größere der Parameter val1 und val2. Wenn entweder val1 oder val2 oder sowohl val1 als auch val2 gleich NaN ist, wird NaN zurückgegeben.

Gilt für:

Max(Decimal, Decimal)

Source:
Math.cs
Source:
Math.cs
Source:
Math.cs

Gibt die größere von zwei Decimal-Zahlen zurück.

public:
 static System::Decimal Max(System::Decimal val1, System::Decimal val2);
public static decimal Max (decimal val1, decimal val2);
static member Max : decimal * decimal -> decimal
Public Shared Function Max (val1 As Decimal, val2 As Decimal) As Decimal

Parameter

val1
Decimal

Die erste von zwei zu vergleichenden Dezimalzahlen.

val2
Decimal

Die zweite von zwei zu vergleichenden Dezimalzahlen.

Gibt zurück

Der größere der Parameter val1 und val2.

Gilt für:

Max(Byte, Byte)

Source:
Math.cs
Source:
Math.cs
Source:
Math.cs

Gibt die größere von zwei 8-Bit-Ganzzahlen ohne Vorzeichen zurück.

public:
 static System::Byte Max(System::Byte val1, System::Byte val2);
public static byte Max (byte val1, byte val2);
static member Max : byte * byte -> byte
Public Shared Function Max (val1 As Byte, val2 As Byte) As Byte

Parameter

val1
Byte

Die erste von zwei zu vergleichenden 8-Bit-Ganzzahlen ohne Vorzeichen.

val2
Byte

Die zweite von zwei zu vergleichenden 8-Bit-Ganzzahlen ohne Vorzeichen.

Gibt zurück

Der größere der Parameter val1 und val2.

Gilt für:

Max(Int64, Int64)

Source:
Math.cs
Source:
Math.cs
Source:
Math.cs

Gibt die größere von zwei 64-Bit-Ganzzahlen mit Vorzeichen zurück.

public:
 static long Max(long val1, long val2);
public static long Max (long val1, long val2);
static member Max : int64 * int64 -> int64
Public Shared Function Max (val1 As Long, val2 As Long) As Long

Parameter

val1
Int64

Die erste von zwei zu vergleichenden 64-Bit-Ganzzahlen mit Vorzeichen.

val2
Int64

Die zweite von zwei zu vergleichenden 64-Bit-Ganzzahlen mit Vorzeichen.

Gibt zurück

Der größere der Parameter val1 und val2.

Gilt für: