lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


for this code:

a=tostring(1/3)
print(1/3==tonumber(a))  -- false

--if use .16g 

a=string.format('%.16g',1/3)
print(1/3==tonumber(a))  -- true