Skip to content

matsu7874/kanji-number-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kanji-number-parser

Convert Chinese numeral String to BigUInt.

Getting Started

Simply add to your Cargo.toml:

[dependencies]
kanji-number-parser = "0.1.0"

Example

use kanji_number_parser::parse;
fn main(){
    println!("一億五千万: {}", parse(String::from("一億五千万")).unwrap());
    // => 一億五千万: 150000000
    println!("十二無量大数: {}", parse(String::from("十二無量大数")).unwrap());
    // => 十二無量大数: 1200000000000000000000000000000000000000000000000000000000000000000000
}

About

Convert Chinese numeral String to BigUInt.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages