/capacity-unit-converter

A tiny piece of rust code that helps kids to understand basic's computer science units 🧠

Primary LanguageRust

Capacity Unit Converter 🔄

A minimalistic, yet powerful command-line application built with Rust 🦀. It converts given digital storage units into equivalent values in different storage units.

Usage 🎮

To use the converter, you simply need to provide it with a number and a storage unit:

➜ cargo run <value> <unit>
+------+-----------------------------+
| Unit | Value                       |
+------+-----------------------------+
| B    | 1507328                     |
+------+-----------------------------+
| KB   | 1472                        |
+------+-----------------------------+
| MB   | 1.4375                      |
+------+-----------------------------+
| GB   | 0.00140380859375            |
+------+-----------------------------+
| TB   | 0.0000013709068298339844    |
+------+-----------------------------+
| PB   | 0.0000000013387762010097504 |
+------+-----------------------------+

Prerequisites 📋

To work with this project, you'll need:

  • Rust 1.53.0 or later version installed on your machine. A text editor of your choice.

License 📝

This project is licensed under the MIT License.