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

后端 未结 14 889
情书的邮戳
情书的邮戳 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-11 21:38

    In C or C++, you can use GMP (Gnu Multi-Precision library).

    In Perl, you can use the bignum module.

提交回复
热议问题