Skip to content

Converts numbers to words in the Croatian language

License

Notifications You must be signed in to change notification settings

Blatko1/num-word-conv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Number to Word Convertor (cro/hr)

CLI program that converts numbers to words in Croatian language.

Note before use

It is recommended to run this program in a terminal which supports colors.

How to install

You can easily download the executable from the releases tab or you can just build it manually.

First, clone the source code and enter it's directory.

Then build the executable:

$ cargo build --release

After the build process is done, go to folder:

number-to-word-converter
│   Cargo.toml
│   README.md
|   ...

└───src
│   │   main.rs

└───target
    │   release
    │   |   **num-word-converter.exe**  <--
    │   |   ...
    │   ...

Copy the highlighted '.exe' to some more accessible place and rename it how you want.

Usage

Open your terminal in the same directory where the '.exe' is and type:

$ converter 435

The command name which triggers this function can be whatever you name your '.exe' file (<name_of_executable> <any_number>).

Your output should look similar to this:

Konvertirano:
        četiristo trideset pet

Decimals and separators

This program also supports decimal numbers but only up to 2 decimals max.

You can also separate digits with characters underscores ('_'), spaces (' ') and points ('.').

  • When entering decimal numbers or using space digit separators, make sure to put the whole number in between "quotes".

Resources