https://github.com/gkarthiks/getnumtext
https://gkarthiks.github.io/getNumText/
https://github.com/gkarthiks/getnumtext
division division-expression number-to-words string string-conversion string-converter
Last synced: 3 months ago
JSON representation
https://gkarthiks.github.io/getNumText/
- Host: GitHub
- URL: https://github.com/gkarthiks/getnumtext
- Owner: gkarthiks
- License: mit
- Created: 2018-04-21T08:12:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-24T02:12:12.000Z (about 2 years ago)
- Last Synced: 2025-01-25T17:43:06.288Z (5 months ago)
- Topics: division, division-expression, number-to-words, string, string-conversion, string-converter
- Language: JavaScript
- Homepage:
- Size: 319 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
  [](https://travis-ci.org/gkarthiks/getNumText)
# getNumText
Takes the division expression and returns the result in String
## Why you need this?
When ever there is a need to represent the result of the quotient data from a divisor dividing a dividend, the `getNumText()` function solves a step lesser.
- Pass in the number expressions as shown below.
- '5678/789'
- '876545.567/56789'
## Installation:
> npm i getnumtext## Usage:
```
var getNumText = require('getnumtext');getNumText('1234567890/456.78', {isCurrency:true})
//Two Million Seven Hundred Thousand Two Thousand Seven Hundred Sixty Two US Dollars And Fifty Eight Cents OnlygetNumText('3456789.987654/45678.87', {})
//Seventy Five Point Sixty EightgetNumText('345678.567/678', {isCurrency:true, domicile:'USD', limit:3})
//Five Hundred Nine US Dollars And Eight Hundred Fifty Cents Only
```
### Defaults:
|Field| Default Value | Description|
| --- | ------------- | -----------|
|isCurrency | false | defines whether the resultant is currency or normal numerals.|
|domicile | 'USD' | defines the currency country unit. asof now, USD and INR|
|limit | 2 | defines the roundof limit for decimal numbers|