Lua的标准(或最佳支持)大数(任意精度)库是什么? [英] What is the standard (or best supported) big number (arbitrary precision) library for Lua?
本文介绍了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:
- http://oss.digirati.com.br/luabignum/
- http://www.tc.umn.edu/~ringx004/mapm-main.html
- http://lua-users.org/lists/lua-l/2002-02/msg00312.html (可能与#2相同)
- http://www.gammon.com.au/scripts/doc.php?general = lua_bc (但我找不到任何来源)
- http://oss.digirati.com.br/luabignum/
- http://www.tc.umn.edu/~ringx004/mapm-main.html
- http://lua-users.org/lists/lua-l/2002-02/msg00312.html (might be identical to #2)
- 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?