Crates.io | lakh-crore-numbers |
lib.rs | lakh-crore-numbers |
version | 0.1.0 |
source | src |
created_at | 2021-04-06 17:53:24.041782 |
updated_at | 2021-04-06 17:53:24.041782 |
description | A Rust library for formatting numbers into the Lakh Crore (...हजार, लाख, करोड, अर्ब...) system. |
homepage | |
repository | https://github.com/suvash/lakh-crore-numbers/tree/main/rust |
max_upload_size | |
id | 379935 |
size | 30,861 |
A Rust crate for formatting numbers into the "Lakh Crore" (...हजार, लाख, करोड, अर्ब...) system.
lakh-crore-numbers is available on crates.io:
[dependencies]
lakh-crore-numbers = "0.1.0"
The current goal of the library is to be format numbers into two types of representation.
A handful of functions are made publicly available to facilitate this.
use lakh_crore_numbers as lcn;
assert_eq!(lcn::format_to_nepali_numeral(295678), "२९५६७८");
use lakh_crore_numbers as lcn;
assert_eq!(
lcn::format_to_nepali_words(8359),
Ok(String::from("आठ हजार तीन सय उनन्साट्ठी")));
Please take a look at the official documentation as well.
Please check the CHANGELOG.md for details.
Copyright © 2021, Suvash Thapaliya
Distributed under the ISC License.