Skip to content

Commit

Permalink
[ADDED]: Readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
higueraDev committed Dec 29, 2022
1 parent a7f18a1 commit c23dd46
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Basic expressions calculator

This is an algorithm for calculate many operations at the same time, at the last update is not possible to use parenthesis.

So an example could be:

````
12+2-3+12/2*5
````
The result would be
````
--- Details ---
2*5: 10
12/10: 1.2
12+2: 14
-3+1.2: -1.8
14-1.8: 12.2
--- Done ---
The result is: 12.2
````
As we can see the details displayed, the expression is resolved in order of "Math Order of Operations":

1. Multiplication
2. Division
3. Addition
4. Subtraction

This respository will be updated on the way of my learning path. So I'll be adding features or improvements.

0 comments on commit c23dd46

Please sign in to comment.