Skip to content

epikur-io/glua-bignum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Bignum - arbitrary precision decimal arithmetic for lua

This package extends gopher-lua with arbitrary precision decimal arithmetic

local bignum = require("bignum").new

local fv = 0.1578416574
local loops = 3
local smx = 0
local sm =  bignum(0)
for i=1,loops,1 do
	sm = sm:add(bignum(fv))
	smx = smx + fv
end
print(smx:string())

About

Arbitrary precision decimal arithmetic for lua

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages