All Projects → rbrahul → number-to-bengali-word

rbrahul / number-to-bengali-word

Licence: other
An amazing package to convert your number to bengali word representation.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to number-to-bengali-word

DigitText
The module allows to translate numbers into a text equivalent. This is important in the billing.
Stars: ✭ 22 (+0%)
Mutual labels:  number-to-words, number
number-to-words
convert number into words (english, french, italian, roman, spanish, portuguese, belgium, dutch, swedish, polish, russian, iranian, roman, aegean)
Stars: ✭ 53 (+140.91%)
Mutual labels:  number-to-words, number
numberwords
Convert a number to an approximated text expression: from '0.23' to 'less than a quarter'.
Stars: ✭ 191 (+768.18%)
Mutual labels:  number-to-words
docs
লারাভেল বাংলা ডকুমেন্টেশন
Stars: ✭ 32 (+45.45%)
Mutual labels:  bangla
terbilang
Sebuah pustaka untuk menterjemahkan angka ke dalam bilangan Bahasa Indonesia
Stars: ✭ 46 (+109.09%)
Mutual labels:  number
vue-persian-tools
Persian tools wrapper for vue.js
Stars: ✭ 21 (-4.55%)
Mutual labels:  number-to-words
from-exponential
Lightweight module to convert number from exponential notation to a human readable string.
Stars: ✭ 27 (+22.73%)
Mutual labels:  number
Number To Words
Number to string standalone PHP library with i18n. Drivers for numbers and currency included.
Stars: ✭ 234 (+963.64%)
Mutual labels:  number
SurrealNumbers.jl
Implementation of Conway's Surreal Numbers
Stars: ✭ 30 (+36.36%)
Mutual labels:  number
break infinity.js
A replacement for decimal.js for incremental games who want to deal with very large numbers (bigger in magnitude than 1e308, up to as much as 1e(9e15) ) and want to prioritize speed over accuracy.
Stars: ✭ 145 (+559.09%)
Mutual labels:  number
kor-to-number.js
한글로 적힌 한국어 수사를 숫자로 변환하는 자바스크립트 라이브러리입니다.
Stars: ✭ 39 (+77.27%)
Mutual labels:  number
ChangeNumbersJs
Tiny Library for change number from a language in other language.
Stars: ✭ 14 (-36.36%)
Mutual labels:  number
jQuery.EAN13
A jQuery & plain JavaScript library for generating EAN13-barcodes
Stars: ✭ 45 (+104.55%)
Mutual labels:  number
number-to-words
⚡ Thư viện hổ trợ chuyển đổi số sang chữ số Tiếng Việt.
Stars: ✭ 19 (-13.64%)
Mutual labels:  number-to-words
format-number
文本框数字格式化
Stars: ✭ 17 (-22.73%)
Mutual labels:  number
phonenumber
With a given country and phone number, validate and format the MOBILE phone number to E.164 standard
Stars: ✭ 108 (+390.91%)
Mutual labels:  number
Random-Number-Generator
A clean, simple random number generator for Android. Downloaded 180,000+ times and rated 2,000+ times on Google Play with 4.7+ average rating.
Stars: ✭ 30 (+36.36%)
Mutual labels:  number
Tau.jl
A Julia module providing the definition of the circle constant Tau (2π)
Stars: ✭ 33 (+50%)
Mutual labels:  number
bamgineer
Bamgineer: Introduction of simulated allele-specific copy number variants into exome and targeted sequence data sets
Stars: ✭ 35 (+59.09%)
Mutual labels:  number
lrng
Linux Random Number Generator
Stars: ✭ 57 (+159.09%)
Mutual labels:  number

bengali-number

An amazing package to convert your number to bengali word representation

Installation

Install via npm

$ npm i bengali-number

How to Use

const { toBengaliNumber, toBengaliWord} = require('bengali-number');

...
// Convert English number to it's bengali number representation

const bengaliNumberRepresentation = toBengaliNumber(9876543210.0123456789);
consle.log(bengaliNumberRepresentation) // output: ৯৮৭৬৫৪৩২১০.০১২৩৪৫৬৭৮৯

...

// Convert only numeric part of a text

const bengaliNumberWithText = toBengaliNumber('USD 999.123');
consle.log(bengaliNumberWithText) // output: USD ৯৯৯.১২৩

...

// Convert English number to it's Bengali word representation

const bengaliWordRepresentation = toBengaliWord(37762086.507);
console.log(bengaliWordRepresentation);  // output: তিন কোটি সাতাত্তর লক্ষ বাষট্টি হাজার ছিয়াশি দশমিক পাঁচ শুন্য সাত

Run Test:

To run tests after cloning or downloading this repository run following commands:

$ npm i
$ npm test

Then you will have these messages in terminal:

   Converts English number/digit to it's Bengali number representation
    ✓ should convert 'USD 987.123' to 'USD ৯৮৭.১২৩'
    ✓ should convert 1234567890 to ১২৩৪৫৬৭৮৯০
    ✓ should convert 9876543210.0123456789 to ৯৮৭৬৫৪৩২১০.০১২৩৪৫৬৭৮৯

  Convert Amount to Bengali Word Representation Test
    ✓ should convert 1 to bengali এক
    ✓ should convert 10000 to bengali দশ হাজার
    ✓ should convert 1277548.57 to it's bengali word represetation
    ✓ should convert 7576516080681.50 to it's bengali word represetation
    ✓ should convert 9999999999999 to it's bengali word represetation
    ✓ should convert 111111111110 to it's bengali word represetation
    ✓ should convert .5 to it's bengali word represetation
    ✓ should convert 111222333444555 to it's bengali word represetation
    ✓ should convert 200300400500.25 to it's bengali word represetation
    ✓ should convert 3.1416 to it's bengali word represetation
    ✓ should convert 100000000700.1234 to it's bengali word represetation

All the best, enjoy Javascript 😃

NB: For large numbers such as 3.7722526363525255e+27 it may provide unexpected result because of Javascript's long number limitation.

Developed with and respect to my mother language Bengali

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].