Is floating point arbitrary precision available?

后端 未结 5 1368
梦毁少年i
梦毁少年i 2020-11-22 09:11

Just for fun and because it was really easy, I\'ve written a short program to generate Grafting numbers, but because of floating point precision issues it\'s not finding som

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-22 09:17

    Python has no built-in arbitrary-precision floats, but there are 3rd-party Python packages that use GMP: gmpy and PyGMP.

提交回复
热议问题