Module:Rational: Difference between revisions

Ganaram inukshuk (talk | contribs)
added is_within_int_limit function, because there were enough use-cases to add it
Request precise description
Line 332: Line 332:


-- compute a canonical representation of `a` modulo powers of `b`
-- compute a canonical representation of `a` modulo powers of `b`
-- TODO: describe the exact behavior
--      it seems bugged when the equave is a fraction
function p.modulo_mul(a, b)
function p.modulo_mul(a, b)
if type(a) == "number" then
if type(a) == "number" then