BigInteger.LessThanOrEqual 演算子

定義

指定された値がもう 1 つの指定された値以下かどうかを示す値を返します。Returns a value that indicates whether a specified value is less than or equal to another specified value.

オーバーロード

LessThanOrEqual(UInt64, BigInteger)

64 ビット符号なし整数が BigInteger 値以下かどうかを示す値を返します。Returns a value that indicates whether a 64-bit unsigned integer is less than or equal to a BigInteger value.

LessThanOrEqual(BigInteger, BigInteger)

BigInteger 値がもう 1 つの BigInteger 値以下かどうかを示す値を返します。Returns a value that indicates whether a BigInteger value is less than or equal to another BigInteger value.

LessThanOrEqual(BigInteger, UInt64)

BigInteger 値が 64 ビット符号なし整数以下かどうかを示す値を返します。Returns a value that indicates whether a BigInteger value is less than or equal to a 64-bit unsigned integer.

LessThanOrEqual(Int64, BigInteger)

64 ビット符号付き整数が BigInteger 値以下かどうかを示す値を返します。Returns a value that indicates whether a 64-bit signed integer is less than or equal to a BigInteger value.

LessThanOrEqual(BigInteger, Int64)

BigInteger 値が 64 ビット符号付き整数以下かどうかを示す値を返します。Returns a value that indicates whether a BigInteger value is less than or equal to a 64-bit signed integer.

LessThanOrEqual(UInt64, BigInteger)

重要

この API は CLS 準拠ではありません。

64 ビット符号なし整数が BigInteger 値以下かどうかを示す値を返します。Returns a value that indicates whether a 64-bit unsigned integer is less than or equal to a BigInteger value.

public:
 static bool operator <=(System::UInt64 left, System::Numerics::BigInteger right);
[System.CLSCompliant(false)]
public static bool operator <= (ulong left, System.Numerics.BigInteger right);
static member ( <= ) : uint64 * System.Numerics.BigInteger -> bool
Public Shared Operator <= (left As ULong, right As BigInteger) As Boolean

パラメーター

left
UInt64

比較する最初の値です。The first value to compare.

right
BigInteger

比較する 2 番目の値です。The second value to compare.

戻り値

trueleft 以下の場合は right。それ以外の場合は falsetrue if left is less than or equal to right; otherwise, false.

属性

注釈

LessThanOrEqual メソッドは、BigInteger 値に対して、以下演算子の操作を定義します。The LessThanOrEqual method defines the operation of the less than or equal to operator for BigInteger values. 次のようなコードが有効になります。It enables code such as the following:

BigInteger number = BigInteger.Parse("9801324316220166912");
if (UInt64.MaxValue <= number)
{
   // Do something.
}
else
{
   // Do something else.
}      
Dim number As BigInteger = BigInteger.Parse("9801324316220166912")
If UInt64.MaxValue <= number Then
   ' Do something.
Else
   ' Do something else.
End If      

カスタム演算子をサポートしない言語では、代わりに BigInteger.CompareTo(UInt64) メソッドを呼び出すことができます。Languages that do not support custom operators can call the BigInteger.CompareTo(UInt64) method instead. また、次の例に示すように、LessThanOrEqual(UInt64, BigInteger) メソッドを直接呼び出すこともできます。They can also call the LessThanOrEqual(UInt64, BigInteger) method directly, as the following example shows.

Dim number As BigInteger = BigInteger.Parse("9801324316220166912")
If BigInteger.op_LessThanOrEqual(UInt64.MaxValue, number) Then
   ' Do something.
Else
   ' Do something else.
End If      

この演算子の同等のメソッドは BigInteger.CompareTo(UInt64)です。The equivalent method for this operator is BigInteger.CompareTo(UInt64).

こちらもご覧ください

LessThanOrEqual(BigInteger, BigInteger)

BigInteger 値がもう 1 つの BigInteger 値以下かどうかを示す値を返します。Returns a value that indicates whether a BigInteger value is less than or equal to another BigInteger value.

public:
 static bool operator <=(System::Numerics::BigInteger left, System::Numerics::BigInteger right);
public static bool operator <= (System.Numerics.BigInteger left, System.Numerics.BigInteger right);
static member ( <= ) : System.Numerics.BigInteger * System.Numerics.BigInteger -> bool
Public Shared Operator <= (left As BigInteger, right As BigInteger) As Boolean

パラメーター

left
BigInteger

比較する最初の値です。The first value to compare.

right
BigInteger

比較する 2 番目の値です。The second value to compare.

戻り値

trueleft 以下の場合は right。それ以外の場合は falsetrue if left is less than or equal to right; otherwise, false.

注釈

LessThanOrEqual メソッドは、BigInteger 値に対して、以下演算子の操作を定義します。The LessThanOrEqual method defines the operation of the less than or equal to operator for BigInteger values. 次のようなコードが有効になります。It enables code such as the following:

BigInteger number1 = 945834723;
BigInteger number2 = 345145625;
BigInteger number3 = 945834724;
BigInteger number4 = 945834723;
Console.WriteLine(number1 <= number2);             // Displays False
Console.WriteLine(number1 <= number3);             // Displays True
Console.WriteLine(number1 <= number4);             // Displays True
Dim number1 As BigInteger = 945834723
Dim number2 As BigInteger = 345145625
Dim number3 As BigInteger = 945834724 
Dim number4 As BigInteger = 945834723
Console.WriteLine(number1 <= number2)                 ' Displays False
Console.WriteLine(number1 <= number3)                 ' Displays True
Console.WriteLine(number1 <= number4)                 ' Displays True

カスタム演算子をサポートしない言語では、代わりに Compare メソッドを呼び出すことができます。Languages that do not support custom operators can call the Compare method instead. また、次の例に示すように、LessThanOrEqual(BigInteger, BigInteger) メソッドを直接呼び出すこともできます。They can also call the LessThanOrEqual(BigInteger, BigInteger) method directly, as the following example shows.

Dim numberA As BigInteger = 945834723
Dim numberB As BigInteger = 345145625
Dim numberC As BigInteger = 945834724 
Dim numberD As BigInteger = 945834723
Console.WriteLine( _
        BigInteger.op_LessThanOrEqual(numberA, numberB))    ' Displays False
Console.WriteLine( _
        BigInteger.op_LessThanOrEqual(numberA, numberC))    ' Displays True
Console.WriteLine( _
        BigInteger.op_LessThanOrEqual(numberA, numberD))    ' Displays True       

この演算子の同等のメソッドは BigInteger.Compare(BigInteger, BigInteger)です。The equivalent method for this operator is BigInteger.Compare(BigInteger, BigInteger).

こちらもご覧ください

LessThanOrEqual(BigInteger, UInt64)

重要

この API は CLS 準拠ではありません。

BigInteger 値が 64 ビット符号なし整数以下かどうかを示す値を返します。Returns a value that indicates whether a BigInteger value is less than or equal to a 64-bit unsigned integer.

public:
 static bool operator <=(System::Numerics::BigInteger left, System::UInt64 right);
[System.CLSCompliant(false)]
public static bool operator <= (System.Numerics.BigInteger left, ulong right);
static member ( <= ) : System.Numerics.BigInteger * uint64 -> bool
Public Shared Operator <= (left As BigInteger, right As ULong) As Boolean

パラメーター

left
BigInteger

比較する最初の値です。The first value to compare.

right
UInt64

比較する 2 番目の値です。The second value to compare.

戻り値

trueleft 以下の場合は right。それ以外の場合は falsetrue if left is less than or equal to right; otherwise, false.

属性

注釈

LessThanOrEqual メソッドは、BigInteger 値に対して、以下演算子の操作を定義します。The LessThanOrEqual method defines the operation of the less than or equal to operator for BigInteger values. 次のようなコードが有効になります。It enables code such as the following:

BigInteger number = BigInteger.Parse("19801324316220166912");
if (number <= UInt64.MaxValue)
{
   // Do something.
}
else
{
   // Do something else.
}      
Dim number As BigInteger = BigInteger.Parse("19801324316220166912")
If number <= UInt64.MaxValue Then
   ' Do something.
Else
   ' Do something else.
End If      

カスタム演算子をサポートしない言語では、代わりに BigInteger.CompareTo(UInt64) メソッドを呼び出すことができます。Languages that do not support custom operators can call the BigInteger.CompareTo(UInt64) method instead. また、次の例に示すように、LessThanOrEqual(BigInteger, UInt64) メソッドを直接呼び出すこともできます。They can also call the LessThanOrEqual(BigInteger, UInt64) method directly, as the following example shows.

Dim number As BigInteger = BigInteger.Parse("19801324316220166912")
If BigInteger.op_LessThanOrEqual(number, UInt64.MaxValue) Then
   ' Do something.
Else
   ' Do something else.
End If      

この演算子の同等のメソッドは BigInteger.CompareTo(UInt64)です。The equivalent method for this operator is BigInteger.CompareTo(UInt64).

こちらもご覧ください

LessThanOrEqual(Int64, BigInteger)

64 ビット符号付き整数が BigInteger 値以下かどうかを示す値を返します。Returns a value that indicates whether a 64-bit signed integer is less than or equal to a BigInteger value.

public:
 static bool operator <=(long left, System::Numerics::BigInteger right);
public static bool operator <= (long left, System.Numerics.BigInteger right);
static member ( <= ) : int64 * System.Numerics.BigInteger -> bool
Public Shared Operator <= (left As Long, right As BigInteger) As Boolean

パラメーター

left
Int64

比較する最初の値です。The first value to compare.

right
BigInteger

比較する 2 番目の値です。The second value to compare.

戻り値

trueleft 以下の場合は right。それ以外の場合は falsetrue if left is less than or equal to right; otherwise, false.

注釈

LessThanOrEqual メソッドは、BigInteger 値に対して、以下演算子の操作を定義します。The LessThanOrEqual method defines the operation of the less than or equal to operator for BigInteger values. 次のようなコードが有効になります。It enables code such as the following:

BigInteger number = BigInteger.Parse("9801324316220166912");
if (Int64.MaxValue <= number)
{
   // Do something.
}
else
{
   // Do something else.
}      
Dim number As BigInteger = BigInteger.Parse("9801324316220166912")
If Int64.MaxValue <= number Then
   ' Do something.
Else
   ' Do something else.
End If      

カスタム演算子をサポートしない言語では、代わりに BigInteger.CompareTo(Int64) メソッドを呼び出すことができます。Languages that do not support custom operators can call the BigInteger.CompareTo(Int64) method instead. また、次の例に示すように、LessThanOrEqual(Int64, BigInteger) メソッドを直接呼び出すこともできます。They can also call the LessThanOrEqual(Int64, BigInteger) method directly, as the following example shows.

Dim number As BigInteger = BigInteger.Parse("9801324316220166912")
If BigInteger.op_LessThanOrEqual(Int64.MaxValue, number) Then
   ' Do something.
Else
   ' Do something else.
End If      

leftByteInt16Int32SByteUInt16、または UInt32 の値の場合、操作の実行時に暗黙的に Int64 値に変換されます。If left is a Byte, Int16, Int32, SByte, UInt16, or UInt32 value, it is implicitly converted to an Int64 value when the operation is performed.

この演算子の同等のメソッドは BigInteger.CompareTo(Int64)です。The equivalent method for this operator is BigInteger.CompareTo(Int64).

こちらもご覧ください

LessThanOrEqual(BigInteger, Int64)

BigInteger 値が 64 ビット符号付き整数以下かどうかを示す値を返します。Returns a value that indicates whether a BigInteger value is less than or equal to a 64-bit signed integer.

public:
 static bool operator <=(System::Numerics::BigInteger left, long right);
public static bool operator <= (System.Numerics.BigInteger left, long right);
static member ( <= ) : System.Numerics.BigInteger * int64 -> bool
Public Shared Operator <= (left As BigInteger, right As Long) As Boolean

パラメーター

left
BigInteger

比較する最初の値です。The first value to compare.

right
Int64

比較する 2 番目の値です。The second value to compare.

戻り値

trueleft 以下の場合は right。それ以外の場合は falsetrue if left is less than or equal to right; otherwise, false.

注釈

LessThanOrEqual メソッドは、BigInteger 値に対して、以下演算子の操作を定義します。The LessThanOrEqual method defines the operation of the less than or equal to operator for BigInteger values. 次のようなコードが有効になります。It enables code such as the following:

BigInteger number = BigInteger.Parse("9801324316220166912");
if (number <= Int64.MaxValue)
{
   // Do something.
}
else
{
   // Do something else.
}      
Dim number As BigInteger = BigInteger.Parse("9801324316220166912")
If number <= Int64.MaxValue Then
   ' Do something.
Else
   ' Do something else.
End If      

カスタム演算子をサポートしない言語では、代わりに BigInteger.CompareTo(Int64) メソッドを呼び出すことができます。Languages that do not support custom operators can call the BigInteger.CompareTo(Int64) method instead. また、次の例に示すように、LessThanOrEqual(BigInteger, Int64) メソッドを直接呼び出すこともできます。They can also call the LessThanOrEqual(BigInteger, Int64) method directly, as the following example shows.

Dim number As BigInteger = BigInteger.Parse("9801324316220166912")
If BigInteger.op_LessThanOrEqual(number, Int64.MaxValue) Then
   ' Do something.
Else
   ' Do something else.
End If      

rightByteInt16Int32SByteUInt16、または UInt32 の値の場合、操作の実行時に暗黙的に Int64 値に変換されます。If right is a Byte, Int16, Int32, SByte, UInt16, or UInt32 value, it is implicitly converted to an Int64 value when the operation is performed.

この演算子の同等のメソッドは BigInteger.CompareTo(Int64)です。The equivalent method for this operator is BigInteger.CompareTo(Int64).

こちらもご覧ください

適用対象