scottdchris / NumToWords

Takes an integer between 0 and 999,999,999 and converts it to the word/place representation of the number in English.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Synopsis

Shows how to spell out a number in English. Can also dlace the 'place' of the number (e.g. first, second). Support inputs up to at 999,999,999.

Code Example

Template: Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

This problem/solution was inspired by karan's Projects (https://github.com/karan/Projects) repo.

Installation

Template: Provide code examples and explanations of how to get the project.

API Reference

N/A

Tests

Template: Describe and show how to run the tests with code examples.

Contributors

Feel free to expand the functionality! If you understand how the recursion works, it would take little effort to expan this to the billions, trillions and beyond.

License

Copyright (c) [2014] [ScottDChris]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Takes an integer between 0 and 999,999,999 and converts it to the word/place representation of the number in English.


Languages

Language:Python 100.0%