dzongkha-numbers
v1.0.1
Published
a lightweight package to convert numbers from Arabic to bhutanese number
Downloads
2
Maintainers
Readme
dzongkha-numbers
A lightweight module to convert numbers from Arabic to bhutanses numbers.
Installation
npm i --save dzongkha-numbers
API
translateNumber(number)
Arguments
number: number
: The input integer or float to convert.
Returns
string
: The dzongkha representation of the input number.
Usage
JavaScript
const translateNumber = require('dzongkha-numbers');
const integerValue = translateNumber(18041991);
console.log(integerValue); //Outputs: ༡༨༠༤༡༩༩༡
const floatValue = translateNumber(1804.91);
console.log(floatValue); //Outputs: ༡༨༠༤.༩༡