Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when assigning big number to BigInteger

Tags:

c#

biginteger

Trying to assign a large number to a BigInteger in C#

 BigInteger number= 27419669081321110693270343633073797;

but it shows error :

Integral constant is too large

I thought that BigInteger is as big as my RAM so how can I move this number to BigInteger?

like image 585
MartinS Avatar asked Jan 06 '13 09:01

MartinS


1 Answers

I think you can do it with BigInteger.Parse(String). Without knowing a lot about C#, I think the right part of the assignment is the wrong one. The number is too big.

like image 66
Burkhard Avatar answered Sep 28 '22 09:09

Burkhard