Module:Interval extension: Difference between revisions

R-4981 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
local p = {}
local p = {}


-- Calculated by http:
local


-- Get from the table with Linear Interpolation
-- Get from the table with Linear Interpolation
Line 16: Line 11:


     b = c - math.floor(c)
     b = c - math.floor(c)
     return lookup_table[math.floor(c)] * (1-b) + lookup_table[math.floor(c) + 1] * b
     return lookup_table[math.floor(c)] * (1 - b) + lookup_table[math.floor(c) + 1] * b
end
end


return p
return p