4.2.1 • Published 1 month ago

with_decimal v4.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
1 month ago

Number to Words

Introduction

Converts Numbers (including decimal points) into words . It also converts the numbers into words for currency.

Installation

npm install with_decimal --save

OR

yarn add with_decimal

Usage

let toWords = require("with_decimal");
let words = toWords(123); // words = One Hundred Twenty Three

words = toWords(123.45); // words = One Hundred Twenty Three Point Fourty Five

To convert to currency

let toWords = require("with_decimal");
let words = toWords(452, { currency: true, label: "EUR" }); // words = Four Hundred Fifty Two EUR Only

words = toWords(452.36, { currency: true, label: "EUR" }); // words = Four Hundred Fifty Two EUR And Thirty Six Only
4.2.1

1 month ago

1.8.0

1 month ago

1.2.0

2 months ago

1.1.0

2 months ago

1.0.0

2 months ago

1.7.0

2 months ago

1.6.0

2 months ago

1.5.0

2 months ago

1.4.0

2 months ago

1.3.0

2 months ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago