eryksun <eryk...@gmail.com> > > Oh my. I don't think using the numbers spelled out makes it any > better. I couldn't keep dict_thirty_four vs dict_sixty_five straight > in my head to save my life.
It was just for fun. But by coincidence I was trolling the web and some guy wanted to know if Python could change a number into words, like 349 into Three hundred forty nine. Not in the builtins, I'm afraid. Nothing recent seemed available to do that, on a quick websearch, but I see an easy way to go up to ten dectillion so I'll write that for practice. The only other module I found was so old I couldn't make 2to3 convert it. And it was vast overkill. I don't need Norwegian numbers - let the Norwegians count for themselves - one fish, two fish, three fish... Actually, I can think of a use for a large number routine (without the underlines) Politicians like to alarm us and get contributions by sending emails about the national debt all the time. "Sixteeen trillion, eight hundred eighty two billion, two hundred ninety million, one hundred fifty two thousand, two hundred forty seven dollars" looks so much more alarming than the numerals. And of course, if a dumb pol is reading his teleprompter he'll get brain freeze trying to cipher numerals that big, but he can just read out words. -- Jim Resistance is futile, but running away is often surprisingly effective. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor