nb2fr 0.2.0

Convert integer number to literal French text.
Documentation
  • Coverage
  • 50%
    2 out of 4 items documented1 out of 1 items with examples
  • Size
  • Source code size: 85.96 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.17 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • flashcode/nb2fr
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • flashcode

Nb2fr

Crates.io Build status REUSE status

Nb2fr converts integer numbers to literal French text.

Signed 128-bit integers are supported:

  • from: -170 141 183 460 469 231 731 687 303 715 884 105 728 (i128::MIN in Rust)
  • to: 170 141 183 460 469 231 731 687 303 715 884 105 727 (i128::MAX in Rust).

Usage

In Rust:

use nb2fr::nb2fr;

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

From command line:

$ nb2fr 0 -15 123456 6824718 715884105727
zéro
moins quinze
cent vingt-trois mille quatre cent cinquante-six
six millions huit cent vingt-quatre mille sept cent dix-huit
sept cent quinze milliards huit cent quatre-vingt-quatre millions cent cinq mille sept cent vingt-sept

Copyright

Copyright © 2020-2026 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/.