Skip to content

PolicyEngine/rdbl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rdbl

This is a small package made for convenience in handling currencies and other figures. It's installable via:

pip install git+http://github.com/nikhilwoodruff/rdbl.git

Usage

Usage is simple enough, just import a specific number function in a Python file and pass to the function:

from rdbl import gbp

gbp(22231155.22)

# out: '£22.2m'

gbp(0.229)

# out: '23p'

gbp(-22333933932)

# out: '-£22.3bn'

About

A Python package to format numbers for readability

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Contributors