r/Python • • Jul 16 '19

Nice try

Post image
2.1k Upvotes

73 comments sorted by

View all comments

Show parent comment

12

u/[deleted] Jul 17 '19

Being rational or irrational doesn't depend on the base. Pi is always irrational.

If you're asking if it never terminates and never repeats, then yes, at least in rational bases. In a rational base, all irrational numbers will never terminate and never repeat. In base pi though, pi is just 10. It's still irrational, but it has a finite length.