https://github.com/flashcode/nb2fr
Convert integer number to literal French text.
https://github.com/flashcode/nb2fr
french integer literal
Last synced: 6 months ago
JSON representation
Convert integer number to literal French text.
- Host: GitHub
- URL: https://github.com/flashcode/nb2fr
- Owner: flashcode
- License: gpl-3.0
- Created: 2020-11-15T09:41:52.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-23T06:21:16.000Z (9 months ago)
- Last Synced: 2025-04-23T07:26:12.282Z (9 months ago)
- Topics: french, integer, literal
- Language: Rust
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Convert integer numbers to literal French text
[](https://crates.io/crates/nb2fr)
[](https://github.com/flashcode/nb2fr/actions?query=workflow%3A%22CI%22)
[](https://api.reuse.software/info/github.com/flashcode/nb2fr)
Integer numbers from `-9 223 372 036 854 775 808` to `9 223 372 036 854 775 807` are accepted.
## Usage
In Rust:
```rust
use nb2fr::nb2fr;
fn main() {
assert_eq!(nb2fr(123), "cent vingt-trois");
}
```
From command line:
```
$ nb2fr 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-2025 [Sébastien Helleu](https://github.com/flashcode)
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 .