Module:Rational: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
m Todo
Line 1,086: Line 1,086:


-- FJS representation of a rational number
-- FJS representation of a rational number
-- might be a bit incorrect
-- NOTE: incorrect for prime 127 and possibly other rare cases
-- TODO: confirm correctness
-- TODO: identify the exact problem and fix it
function p.as_FJS(a)
function p.as_FJS(a)
if type(a) == "number" then
if type(a) == "number" then