Modul:Decimals: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
M. Adiputra (bicara | kontrib) baru dari en |
oke 👌 |
||
Baris 6:
local num = tonumber(n)
if not num then
error('
end
local decimals = tonumber(d)
if not decimals then
error('
end
local maxDecimals = 14 - math.floor(math.log10(num)) -- to allow a maximum of 15 significant figures, which is the highest guaranteed correct with doubles
|