Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 951 Bytes

README.md

File metadata and controls

34 lines (30 loc) · 951 Bytes

Bistromathique

Infinite number calculator.
This was my school (Epitech) project and I obtain the best mark (19/20) of the school since 3 years.

Featuring

Sum
Substraction
Multiplication
Division
Modulo
Work in any base
Parse input expression, handle priorities and brackets

Installation

git clone https://github.com/ethanquix/Bistromathique.git
cd Bistromathique
make re

Usage

echo "expression" | ./calc [base] [ops] [expression length]
Example :
$ echo "12+6" | ./calc 0123456789 "+-*/%()" 4
$ 18
$ echo "--++-6*12" | ./calc 0123456789 "()+-*/%" 9
$ -72
$ echo "-(e@-(;*!@))" | ./calc "~^@!;ie& ]" "()+-*/%" 12
$ ee

dimitriwyzlic.com  ·  GitHub @ethanquix  ·  Linkedin Dimitri Wyzlic