| Crates.io | rust_baht_text |
| lib.rs | rust_baht_text |
| version | 0.1.0 |
| created_at | 2024-04-10 10:34:25.598633+00 |
| updated_at | 2024-04-10 10:34:25.598633+00 |
| description | Convert number to Thai Baht text |
| homepage | https://github.com/tstxni97/rustBahtText |
| repository | https://github.com/tstxni97/rustBahtText |
| max_upload_size | |
| id | 1203429 |
| size | 19,620 |
rust library that converts numerical variables to thai text based on https://github.com/tstxni97/goBahttext
รัสต์ไลบรารี่สำหรับแปลงตัวเลขเป็นข้อความภาษาไทยและมีหน่วยสตางค์ที่ถูกต้อง โดยแปลงโค้ดมาจาก https://github.com/tstxni97/goBahttext
cargo add rust_baht_text
use rust_baht_text::baht_text;
fn main() {
println!("{}", baht_text(2.21));
// สองบาทยี่สิบเอ็ดสตางค์
}