Skip to content

Latest commit

 

History

History

rust

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Lakh Crore Numbers - Rust

Build Status

A Rust crate for formatting numbers into the "Lakh Crore" (...हजार, लाख, करोड, अर्ब...) system.

Installation

lakh-crore-numbers is available on crates.io:

lakh-crore-numbers = "0.1.0"

Documentation

Formatting to Numerals (Nepali / नेपाली)

use lakh_crore_numbers as lcn;

assert_eq!(lcn::format_to_nepali_numeral(295678), "२९५६७८");

Formatting to Words (Nepali / नेपाली)

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.

Changelog

Please check the CHANGELOG.md for details.

License

Copyright © 2021, Suvash Thapaliya

Distributed under the ISC License.