Does Mathematica have an equivalent of Python's float.as_integer_ratio?
SetPrecision[]
does this:
SetPrecision[0.1, ∞]
3602879701896397/36028797018963968
Not as clean as J.M.'s method but this seems to give the same result:
0.1 ~RealDigits~ 2 ~FromDigits~ 2
3602879701896397/36028797018963968
Follow with Numerator
and Denominator
if needed.