Anonymous

Module:Shared: Difference between revisions

From Melvor Idle
Remove deprecated functions
(Remove deprecated functions)
(Remove deprecated functions)
Line 348: Line 348:
function p.gcd(a, b)
function p.gcd(a, b)
return numModule.gcd(a, b)
return numModule.gcd(a, b)
end
--Formats a pair of numbers as a reduced fraction
function p.fraction(n, d)
return numModule.fraction(n, d)
end
--Similar to p.fraction but returns the simplified numerator and denomerator separately without formatting
function p.fractionpair(n, d)
return numModule.fractionpair(n, d)
end
end


2,875

edits