The number to convert (can be a number or string).
If true
, converts the digits to English words. Default is false
(converts to Bangla words).
The number with each digit converted to words, including zeros.
convertEachDigitsToWords(10203); // "এক শূন্য দুই শূন্য তিন"
convertEachDigitsToWords(10203, true); // "one zero two zero three"
convertEachDigitsToWords("১০২০৩", true); // "one zero two zero three"
convertEachDigitsToWords("100.05"); // "এক শূন্য শূন্য দশমিক শূন্য পাঁচ"
convertEachDigitsToWords("১০০.০৫", true); // "one zero zero point zero five"
Converts each digit of a number to its corresponding word representation, including zeros.