Skip to content

vahaie/Bistromathique

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Infinite number calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.7%
  • Makefile 2.3%