Module:Limits: Difference between revisions

Plumtree (talk | contribs)
mNo edit summary
Plumtree (talk | contribs)
m Bugfix
Line 35: Line 35:
distinct = distinct or false
distinct = distinct or false
local function approximate(a)
local function approximate(a)
return math.floor(size * math.log(rat.as_float(a)) / math.log(equave) + 0.5)
return math.floor(size * math.log(rat.as_float(a)) / math.log(rat.as_float(equave)) + 0.5)
end
end
if distinct then
if distinct then