DEV Community

Samandar Ravshanov
Samandar Ravshanov

Posted on

πŸ“¦ Converting numbers into words, ordinal words/numbers

from functorflow import ff

r = ff('number-words').words(-3)
print(r) # 'minus three'


r = ff('number-words').ordinal(21)
print(r) # '21st'


r = ff('number-words').wordsordinal(21)
print(r) # 'twenty-first'
Enter fullscreen mode Exit fullscreen mode

Stop wasting time installing and configuring Python libraries. Use them right away. πŸ“¦FunctorFlow instantly auto-install and auto-config them for you.

Top comments (0)