RepeatingDecimalNotations.jl
A Julia package to handle repeating decimal numbers.
Quick start
julia> using RepeatingDecimalNotationsjulia> using RepeatingDecimalNotations: stringify, rationalifyjulia> r = rd"123.4(56)" # 123.4565656...61111//495julia> rd"1.234r56e2" # Other notations61111//495julia> rd"123.45656..." # are also supported.61111//495julia> float(r) # Check floating point number approximation.123.45656565656566julia> rd"0.(9)" # 0.999... is equal to 1.1//1julia> rd"0.99(9)", rd"1", rd"1.000_000" # The notation of repeating decimals is not unique.(1//1, 1//1, 1//1)julia> stringify(1//7) # Generate `String` from `Rational`."0.(142857)"julia> rationalify("0.1(6)") # vice versa.1//6