Crates.io | kanji-number-parser |
lib.rs | kanji-number-parser |
version | 0.1.0 |
source | src |
created_at | 2019-09-09 12:20:40.352341 |
updated_at | 2019-09-09 12:20:40.352341 |
description | Convert Chinese numeral `String` to `BigUInt`. |
homepage | |
repository | https://github.com/matsu7874/kanji-number-parser |
max_upload_size | |
id | 163498 |
size | 23,564 |
Convert Chinese numeral String
to BigUInt
.
Simply add to your Cargo.toml:
[dependencies]
kanji-number-parser = "0.1.0"
use kanji_number_parser::parse;
fn main(){
println!("一億五千万: {}", parse(String::from("一億五千万")).unwrap());
// => 一億五千万: 150000000
println!("十二無量大数: {}", parse(String::from("十二無量大数")).unwrap());
// => 十二無量大数: 1200000000000000000000000000000000000000000000000000000000000000000000
}