Module:ET: Difference between revisions

Ganaram inukshuk (talk | contribs)
Reverted to previous state
CompactStar (talk | contribs)
6 decimal digits should not crash it
Line 5: Line 5:
local common_suffix = {
local common_suffix = {
['3/2'] = 'f',
['3/2'] = 'f',
['987/610'] = 'ϕ',
['1618034/1000000'] = 'ϕ',
['2'] = 'o',
['2'] = 'o',
['2/1'] = 'o',
['2/1'] = 'o',
['3'] = 't',
['3'] = 't',
['3/1'] = 't',
['3/1'] = 't',
['1264/465'] = 'n',
['2718282/1000000'] = 'n',
['355/113'] = 'π'
['3141593/1000000'] = 'π'
}
}
local common_ratio = {
local common_ratio = {
['f'] = rat.new(3, 2),
['f'] = rat.new(3, 2),
['ϕ'] = rat.new(987, 610),
['ϕ'] = rat.new(1618034, 1000000),
['o'] = 2,
['o'] = 2,
['t'] = 3,
['t'] = 3,
['n'] = rat.new(1264, 465),
['n'] = rat.new(2718282, 1000000),
['π'] = rat.new(355, 113)
['π'] = rat.new(3141593, 1000000)
}
}