Compute pi to base 12 using Python?

Roy Smith roy at panix.com
Wed Apr 13 08:28:29 EDT 2005


In article <1113390479.738210.49530 at z14g2000cwz.googlegroups.com>,
 "Dan Bishop" <danb_83 at yahoo.com> wrote:

> But there's no reason other than tradition why you should arrange them
> into groups of 10.

Well, it is traditional for people to have 10 fingers :-)

Other fun things to think about are negative bases.  For example, 3(10) = 
111(-2).  That's 1*(-2)^2  + 1*(-2)^1 + 1*(-2)^0 = 4 - 2 + 1.  I can't 
think of any use for negative bases, but they are a fun game to play with 
(if you're into that sort of stuff).

Non-integer bases are fun too.



More information about the Python-list mailing list