nb2fr

Crates.ionb2fr
lib.rsnb2fr
version0.1.2
sourcesrc
created_at2020-11-15 12:31:41.373043
updated_at2020-11-15 13:11:44.475456
descriptionConvert integer number to literal French text.
homepagehttps://github.com/flashcode/nb2fr
repositoryhttps://github.com/flashcode/nb2fr
max_upload_size
id312562
size46,638
Sébastien Helleu (flashcode)

documentation

https://docs.rs/nb2fr/

README

nb2fr

Build Status

Nb2fr converts an integer number to literal French text.

Integer numbers from -9 223 372 036 854 775 808 to 9 223 372 036 854 775 807 are accepted.

Usage

In Rust:

extern crate nb2fr;

fn main() {
    assert_eq!(nb2fr::nb2fr(123), "cent vingt-trois");
}

From command line:

$ cargo run -q 0 -15 123456 6824718
zéro
moins quinze
cent vingt-trois mille quatre cent cinquante-six
six millions huit cent vingt-quatre mille sept cent dix-huit

Copyright

Copyright © 2020 Sébastien Helleu

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Commit count: 19

cargo fmt