.LessThanOrEqual Operator (BigInteger, Int64)
Returns a value that indicates whether a
value is less than or equal to a 64-bit signed integer. BigInteger
public static bool operator <=(
System .Boolean if true left is less than or equal to right; otherwise, . false
method defines the operation of the less than or equal to operator for LessThanOrEqual values. It enables code such as the following: BigInteger
BigInteger number = BigInteger.Parse( "9801324316220166912");
if (number <= Int64.MaxValue)
// Do something.
// Do something else.
Languages that do not support custom operators can call the
method instead. They can also call the BigInteger .CompareTo(Int64) method directly, as the following example shows. LessThanOrEqual(BigInteger, Int64)
Dim number As BigInteger = BigInteger.Parse( "9801324316220166912")
If BigInteger.op_LessThanOrEqual(number, Int64.MaxValue) Then
' Do something.
' Do something else.
right is a , Byte , Int16 , Int32 , SByte , or UInt16 value, it is implicitly converted to an UInt32 value when the operation is performed. Int64 .NET Framework
Supported in: 4.6, 4.5, 4
.NET Framework Client Profile
Supported in: 4
Portable Class Library
Supported in: Portable Class Library
Supported in: Windows Phone 8.1
( 1500 characters remaining)
Thank you for your feedback