words-and-numbers

Convert Word to Number

Usage no npm install needed!

<script type="module">
  import wordsAndNumbers from 'https://cdn.skypack.dev/words-and-numbers';
</script>

README

wordTONumber

Converts input string to number

Features

  • wordToNumber converts input string to output numbers

API USAGE

wordToNumbers(input)

  • {string} input - input string value

Examples

  • converts one hundred to 100
  • converts nine to 9
  • converts ten millions fifty thousand and five to 10050005
  • converts two lakhs five hundred and fifty to 200550
  • converts two ten crores thirty thousand five hundred and five to 300005520
  • converts two ten crores thirty thousand five hundred and five to 2100055005