Lua 的标准(或最佳支持)大数(任意精度)库是什么? [英] What is the standard (or best supported) big number (arbitrary precision) library for Lua?

查看:22
本文介绍了Lua 的标准(或最佳支持)大数(任意精度)库是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理无法四舍五入的大量数字.使用 Lua 的标准数学库,似乎没有方便的方法来保持精度超过某些内部限制.我还看到有几个库可以加载以处理大数字:

I'm working with large numbers that I can't have rounded off. Using Lua's standard math library, there seem to be no convenient way to preserve precision past some internal limit. I also see there are several libraries that can be loaded to work with big numbers:

  1. http://oss.digirati.com.br/luabignum/
  2. http://www.tc.umn.edu/~ringx004/mapm-main.html
  3. http://lua-users.org/lists/lua-l/2002-02/msg00312.html(可能与#2相同)
  4. http://www.gammon.com.au/scripts/doc.php?general=lua_bc(但我找不到任何来源)
  1. http://oss.digirati.com.br/luabignum/
  2. http://www.tc.umn.edu/~ringx004/mapm-main.html
  3. http://lua-users.org/lists/lua-l/2002-02/msg00312.html (might be identical to #2)
  4. http://www.gammon.com.au/scripts/doc.php?general=lua_bc (but I can't find any source)

此外,C 中有许多库可以调用来自 Lua,如果绑定在哪里建立.

Further, there are many libraries in C that could be called from Lua, if the bindings where established.

您有使用过这些库中的一个或多个的经验吗?

Have you had any experience with one or more of these libraries?

推荐答案

lmapm 库 作者 Luiz Figueiredo,Lua 语言的作者之一.

The lmapm library by Luiz Figueiredo, one of the authors of the Lua language.

这篇关于Lua 的标准(或最佳支持)大数(任意精度)库是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆