#text #numbers #thai #baht

rust_baht_text

Convert number to Thai Baht text

1 unstable release

0.1.0 Apr 10, 2024

#493 in Text processing

Download history 134/week @ 2024-04-09

134 downloads per month

MIT license

16KB
275 lines

rustBahtText main branch

rust library that converts numerical variables to thai text based on https://github.com/tstxni97/goBahttext

รัสต์ไลบรารี่สำหรับแปลงตัวเลขเป็นข้อความภาษาไทยและมีหน่วยสตางค์ที่ถูกต้อง โดยแปลงโค้ดมาจาก https://github.com/tstxni97/goBahttext

Installation

cargo add rust_baht_text

Usage


use rust_baht_text::baht_text;

fn main() {
    println!("{}", baht_text(2.21));
    // สองบาทยี่สิบเอ็ดสตางค์
}

Dependencies

~11KB