japanese_number_converter

Crates.iojapanese_number_converter
lib.rsjapanese_number_converter
version0.1.0
sourcesrc
created_at2023-06-13 23:50:23.003211
updated_at2023-06-13 23:50:23.003211
descriptionA lib to convert numbers into japanese
homepage
repositoryhttps://github.com/sessokosga/Japanese-number-converter
max_upload_size
id889552
size12,474
Sesso Kosga (sessokosga)

documentation

README

Converts a number into japanese

This converter takes a number in input and return a result of type JapaneseNumber. This type has three properties:

  • arabiasu : the number given asinput

  • kanji : the number in kanji format

  • katakana : the number in katakana format

  • romaji : the number in roman format

Example

let result = japanese_number_converter::
            JapaneseNumber::convert(100);
println!("Result : {}  =>  {}  =>  {}  =>  {}",
    result.arabiasuji(),result.kanji(),result.katakana(),result.romaji());
    // Result : 100  =>  百  =>  ヒャク   =>  hyaku  
Commit count: 11

cargo fmt