Giter Site home page Giter Site logo

num-word-conv's Introduction

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

num-word-conv's People

Contributors

blatko1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.