demonmhon / number-to-thai-words

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Number to Thai Words

CircleCI Maintainability Test Coverage

To output the Thai words from number.

const thaiWords1 = words(100);
const thaiWords2 = words(100.25);

console.log(thaiWords1); // OUTPUT: หนึ่งร้อยบาทถ้วน
console.log(thaiWords2); // OUTPUT: หนึ่งร้อยบาทยี่สิบห้าสตางค์

Inspired by antronic/thai-baht-text-js

About


Languages

Language:JavaScript 100.0%