Skip to content

A python library to convert a number to letters in catalan. Based on numbertoletters package that convert in spanish.

License

Notifications You must be signed in to change notification settings

oriolpiera/nombres-a-lletres

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Number to letters

A python library to convert numbers to their catalan text representation. Decimals are managed as currency (1.5 is 'one and fifty')

Quick start

Install it using pip:

pip install nombrestolletres

Usage

Import the library in your project and use it:

from nombrestolletres import number_to_letters

number_to_letters(11452915)
> 'onze milions quatre-cents cinquanta-dos mil nou-cents quinze'

Examples

  • 1245: 'mil dos-cents quaranta-cinc'
  • -30: 'menys trenta'
  • 0: 'zero'
  • 23.5: 'vint-i-tres amb cinquanta'

About

A python library to convert a number to letters in catalan. Based on numbertoletters package that convert in spanish.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%