How does BigInteger store its data?

前端 未结 3 1154
天命终不由人
天命终不由人 2020-12-30 20:02

I\'ve been searching around for quite a while, and I\'ve found almost nothing on how BigInteger actually holds its numbers. Are they an array of chars? Somethin

3条回答
  •  猫巷女王i
    2020-12-30 20:40

    The most common way of representing numbers is by using the positional notation system. Numbers are written using digits to represent multiples of powers of the specified base. The base that we are most familiar with and use everyday, is base 10. When we write the number 12345 in base 10, it actually means: 12345 = 1*10^4 + 2*10^3 + 3*10^2 + 4*10^1 + 5*10^0

    Continued here...

提交回复
热议问题