C# BigInteger LessThanOrEqual(BigInteger, UInt64)
Description
BigInteger LessThanOrEqual(BigInteger, UInt64)
Returns
a value that indicates whether a BigInteger value is less than or equal to
a 64-bit unsigned integer.
Syntax
BigInteger.LessThanOrEqual(BigInteger, UInt64)
has the following syntax.
public static bool operator <=(
BigInteger left,
ulong right
)
Parameters
BigInteger.LessThanOrEqual(BigInteger, UInt64)
has the following parameters.
left
- The first value to compare.right
- The second value to compare.
Returns
BigInteger.LessThanOrEqual(BigInteger, UInt64)
method returns true if left is less than or equal to right; otherwise, false.
Example
// w ww . ja va 2s. co m
using System;
using System.IO;
using System.Numerics;
public class Example
{
public static void Main()
{
BigInteger number = BigInteger.Parse("12312312312312");
Console.WriteLine(number <= UInt64.MaxValue);
}
}
The code above generates the following result.