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

后端 未结 14 896
情书的邮戳
情书的邮戳 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:36

    Perl, Python, Ruby, and Java can all do that. External libraries exist for everything else.

    I rather like Ruby and Python because they automatically switch from Fixnum to Bignum. (Python: int to long.)

提交回复
热议问题