Most of what you would need to convert strings to fractions in a given base is already part of Python and an example is given here <https://stackoverflow.com/questions/44616903/using-other-base-systems-in-sympy/44833093#44833093>
On Tuesday, September 1, 2015 at 11:26:48 AM UTC-5, Robert Pollak wrote: > > > > On Friday, July 17, 2015 at 11:20:15 PM UTC+2, Chris Smith wrote: >> >> Is this what you are looking for? >> >> >>> from sympy.ntheory.factor_ import digits >> >>> digits(1234,20) >> [20, 3, 1, 14] >> > > Thank you! So there really was something hidden in SymPy :) Unfortunately, > as this is part of ntheory, it also cannot convert floats. > > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/789a3ca1-b8ba-4756-b99b-9804dad76150%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
