Open main menu
Home
Random
Log in
Settings
About Melvor Idle
Disclaimers
Search
Module:Shared: Difference between revisions
Module
Discussion
← Older edit
Newer edit →
Module:Shared
(view source)
Revision as of 22:47, 29 June 2024
293 bytes removed
,
29 June
Remove deprecated functions
Revision as of 22:44, 29 June 2024
(
view source
)
Ricewind
(
talk
|
contribs
)
(Remove deprecated functions)
← Older edit
Revision as of 22:47, 29 June 2024
(
view source
)
Ricewind
(
talk
|
contribs
)
(Remove deprecated functions)
Newer edit →
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
Ricewind
2,875
edits