Repository navigation
Fixed bugs and added fixed point numbers
supported operations: +,-,*,/
you can write integer numbers from - 4294967295 to 4294967295
the result can range from -9223372036854775808 to 9223372036854775807 (assuming fixed point is disabled)
Parenthesis are supported.
You can now set the size of how many bits you want to use for fixed point (default 0)
Usage: ./calc.elf "4(2+3)"
[!note] the quotes are there to escape whatever bash is doing with the parentesis, the progamm does not handle quotes.
with setting the fixed point size:
./calc.elf -fp 5 2*0.5