numbered

Turns a number into word based equivalent, and parse it back again

Numbered

Turn any number into a formatted word string, and turn it back again.

npm install numbered --save
var numbered = require('numbered');

Number Words exposes a single function that accepts either a string or a number. The string will delegate to the parse method and a number will delegate to the stringify method.

Parses a string into a number as best as possible.

numbered.parse('ninety nine');
=> 99
 
numbered.parse('point two five nine');
=> 0.259

Stringifies a number to the word equivalent.

numbered.stringify(99);
=> "ninety nine"
 
numbered.stringify(0.259);
=> "zero point two five nine"

MIT