biginteger

Implementation of a class of large numbers with long arithmetic

I am writing a class for large numbers up to 2^512 in length. I use the unsigned __int64 array. The addition of numbers is in ... c = t % LLONG_MAX; res.number[i] = c; } res.number[7] = t; return res; } };

Integer to string without exponent

I have a number a=11**20 and I need to output it to a string. But str(a) doesn't fit the way it will: '6.727499949325601e+20' , and I need it to be an integer without an exponent: '672749994932560009201'

Math with big numbers and Biginteger lies

You need to perform simple arithmetic operations on large numbers in C#. I used the System.Numerics library. But he's not cou ... e number second, but this is not the case, you get a completely different number. How to implement it to calculate correctly?

Swap Long for BigInteger or BigDecimal?

I am trying to read from the keyboard a very large integer, I saw that there are the type BigInteger or Bigdecimal, I do not ... f the factorial, and you have the number that would reach this factorial. PS. The program works with numbers up to 9 digits.