Skip to content

Latest commit

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

textualize

This package provides a tool for textualizing integers. In other words, a tool for getting the textual representation of integers.

For example, the textual representation of 123 is 'one hundred twenty-three'.

Usage

importtextualizeprint(textualize.textualize(5))
# 'five' is printed

Instead of textualize(num), you can also use the convenience function i2s(num):

importtextualizeprint(textualize.i2s(5))
# 'five' is printed

or

fromtextualizeimport*print(i2s(5))
# 'five' is printed

Examples

>>>fromtextualizeimporti2s>>>i2s(5)
'five'>>>i2s(104)
'one hundred four'>>>i2s(8294)
'eight thousand two hundred ninety-four'>>>i2s(10000)
'ten thousand'

License

This package is released under The MIT License. See LICENSE.txt for details.

About

Tool for textualizing integers.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages