What programming language will enable me to enter a very long number without converting it to floating point?

后端 未结 14 891
情书的邮戳
情书的邮戳 2020-12-11 21:17

What would be the best way to do the following.

Enter a very long number, lets say 500,000 digits long without it going into scientific notation; and then am able to

14条回答
  •  清歌不尽
    2020-12-11 21:22

    What you're looking for isn't necessarily a language, but an arbitrary-precision library.

    GMP would be a fast implementation in C/C++, and scripting languages that handles big integers would probably use something like that.

提交回复
热议问题