Burmese Number to Words in JavaScript (my-MM) β
Use my-MM when your application needs Burmese (Myanmar) number words for invoicing, checkout flows, or documents that print totals in full words.
Locale codes:
my-MMΒ· Numbering system: Short scale Β· Currency: αα»ααΊ (Kyat) / ααΌα¬αΈ (Pya) Β· Script: Burmese (Myanmar)
Install β
bash
npm install to-wordsBasic Conversion β
js
import { ToWords } from 'to-words';
const tw = new ToWords({ localeCode: 'my-MM' });
tw.convert(100);
tw.convert(1000);
tw.convert(1000000);Currency - Kyat / Pya β
js
tw.convert(1234.56, { currency: true });
tw.convert('500.00', { currency: true, includeZeroFractional: true });Ordinal Numbers β
js
tw.toOrdinal(1);
tw.toOrdinal(10);
tw.toOrdinal(100);Tree-shakeable (single-locale) import β
js
import { toWords, toCurrency, toOrdinal } from 'to-words/my-MM';
toWords(1000);
toCurrency(999.99);Locale Codes β
| Locale code | Country | Currency | Notes |
|---|---|---|---|
my-MM | Myanmar | αα»ααΊ / ααΌα¬αΈ | Burmese script |
Related β
FAQ β
Q: Which locale code should I use for Burmese/Myanmar number-to-words output? Use my-MM.
Q: Does to-words output Burmese in the Myanmar script? Yes. my-MM produces output in Burmese (Myanmar) script.