Skip to content

A simple python module to convert numbers to textual words eg. 2 -> two

License

Notifications You must be signed in to change notification settings

ViperX7/num2text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Num2text

A simple python module to convert numbers to textual words For Example :-

Input :- 5678834
Output:- 'Five Million, Six Hundred Seventy Eight Thousand, Eight Hundred Thirty Four'

Input :- 2
Output:- 'Two'

Input :- 1232467234641294
Output:- 'One Quadrillion, Two Hundred Thirty Two Trillion, Four Hundred Sixty Seven Billion, Two Hundred Thirty Four Million, Six Hundred Fourty One Thousand, Two Hundred Ninety Four'

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Python3+

Installing {To do}

Just Copy and paste the following in your terminal

git clone 
cd num2text
sudo ./setup.py

Usage

This project can be used as a module as well as a command line program

Using in your project

from num2text import *
num2text(num)

From Command Line

usage: num2text.py [-h] [-d DELIMITER] Number

Authors

  • Utkarsh Yadav

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Inspiration : Made this a long long time ago don't remember why I made this

About

A simple python module to convert numbers to textual words eg. 2 -> two

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •