Skip to content

MegaArman/num2cheque

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

num2cheque

converts a number to words for a cheque.

Ex: 123123123.12 => "One hundred and twenty-three million, one hundred and twenty-three thousand, one hundred and twenty-three and 12/100"

Installation

npm install num2cheque

Example Usage

const num2cheque = require("num2cheque");

console.log(num2cheque(123123123.12));

Notes

  • this module intentionally does no input validation, so you should make sure you are passing in a number between 0-999999999

About

converts a number to words for a cheque

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published