Python Forum
looking 4 py code: convert int numbers to their name
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
looking 4 py code: convert int numbers to their name
#2
Not mine, but a quick google search found this: https://github.com/pwdyson/inflect.py

From the docs:
Quote:
   words = p.number_to_words(1234)      # "one thousand, two hundred and thirty-four"
   words = p.number_to_words(p.ordinal(1234)) # "one thousand, two hundred and thirty-fourth"
Reply


Messages In This Thread
RE: looking 4 py code: convert int numbers to their name - by nilamo - Feb-08-2017, 07:21 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020