Skip to content

A python command-line tool which describes the change between two numerical values ๐Ÿงฎ

License

Notifications You must be signed in to change notification settings

fer-aguirre/numerical-expressions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Numerical Expressions

This project contains a Python script that calculates and describes the change between two numerical values in various ways. The script takes two arguments: an initial value and a final value for comparison. The operations performed include percentage, percentage difference, ratio, and ratio difference.

Created by: Fer Aguirre


Directory Structure

โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ change_calculator.py
โ”œโ”€โ”€ poetry.lock
โ”œโ”€โ”€ pyproject.toml
โ””โ”€โ”€ README.md

Getting Started

Requirements

Installation

To install the necessary dependencies, follow these steps:

  1. Clone the repository to your local machine:
git clone https://github.com/fer-aguirre/numerical-expressions
  1. Navigate to the project directory:
cd numerical-expressions
  1. Install the dependencies using Poetry or pip accordingly:
poetry install
pip install -r requirements.txt

Running the Script

To run the change_calculator.py script from the command line, use the following command:

python change_calculator.py <initial_value> <final_value>

Replace <initial_value> and <final_value> with the values you want to compare. For example:

python change_calculator.py 10 20

This will calculate and print the percentage, percentage difference, ratio, and ratio difference between 10 and 20.

Contributing

All contributions are welcome. For major changes, please open an issue first to discuss what you would like to change. Pull requests are appreciated to help fix or add features.

License

This project is released under MIT License.

Acknowledgments


This repository was generated with cookiecutter.

About

A python command-line tool which describes the change between two numerical values ๐Ÿงฎ

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages