Compiler Error CS1021
Integral constant is too large
A value represented by an integer literal is greater than UInt64.MaxValue.
The following sample generates CS1021:
// CS1021.cs
class Program
{
static void Main(string[] args)
{
int a = 18_446_744_073_709_552_000;
}
}
The following code also generates CS1021:
using System.Numerics;
class Program
{
static void Main(string[] args)
{
var a = new BigInteger(18_446_744_073_709_552_000);
}
}
For information about how to instantiate a System.Numerics.BigInteger instance whose value exceeds the range of the built-in numeric types, see the Instantiating a BigInteger Object section of the BigInteger reference page.
Tehke meiega GitHubis koostööd
Selle sisu allika leiate GitHubist, kus saate ka probleeme luua ja läbi vaadata ning päringuid teha. Lisateavet leiate meie kaasautorite juhendist.
Tagasiside
https://aka.ms/ContentUserFeedback.
Varsti tulekul: 2024. aasta jooksul tühistame GitHubi probleemide funktsiooni sisutagasiside mehhanismina ja asendame selle uue tagasisidesüsteemiga. Lisateabe saamiseks vtEsita ja vaata tagasisidet