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

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

    Many functional languages natively support arbitrary-precision numbers. Some have already been mentioned here, but I'll repeat them for completeness:

    • Most versions of Haskell.
    • Miranda, a predecessor to Haskell.
    • Some implementations of Scheme. In particular, PLT Scheme.
    • Erlang.

提交回复
热议问题