How do programming languages handle huge number arithmetic

前端 未结 9 1157
清酒与你
清酒与你 2021-02-05 19:35

For a computer working with a 64 bit processor, the largest number that it can handle would be 264 = 18,446,744,073,709,551,616. How does programming languages, say J

9条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-05 20:04

    Ada actually supports this natively, but only for its typeless constants ("named numbers"). For actual variables, you need to go find an arbitrary-length package. See Arbitrary length integer in Ada

提交回复
热议问题