Why in LISP , there is no limitation for number?

后端 未结 3 1075
野的像风
野的像风 2021-01-18 00:06

I can even calculate (expt 32768 32768) and I got:

47617047058164585203630504288757589154106580860755239912393038552191433338966834242068

3条回答
  •  借酒劲吻你
    2021-01-18 00:36

    Lisp automatically switches math to use a bignum package when it sees this kind of thing. But there is a limitation. Make your numbers big enough, and you may require more bits to represent it than there are atoms in the known universe. Then your system memory will probably be exhausted. :)

提交回复
热议问题