什么是处理任意长度整数的好语言?

发布于 2024-12-25 17:07:11 字数 1536 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

笑叹一世浮沉 2025-01-01 17:07:11

方案有一个功能强大的数字塔,除其他外,还提供任意精度整数(请参阅 秒 3.4 要求符合此要求)。

Scheme has a featureful numeric tower that provides, among other things, arbitrary precision integers (see sec. 3.4 of R6RS which requires this of conforming implementations).

若相惜即相离 2025-01-01 17:07:11

你可以使用 Perl。放在

use bigint;

程序的开头。

You could use Perl. Put

use bigint;

at the beginning of your program.

(り薆情海 2025-01-01 17:07:11

Java 的 BigInteger 类处理非常大的数字: http://docs .oracle.com/javase/7/docs/api/java/math/BigInteger.html

Java's BigInteger class handles very large numbers: http://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html

故人爱我别走 2025-01-01 17:07:11

Haskell 具有无限整数的 Integer 数据类型。
同样弗雷格(它使用 Java 的大整数)。

Haskell has the Integer data type for unlimited integers.
Likewise Frege (it uses Javas big integers).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文