Skip to content

version 0.2

Latest

Choose a tag to compare

@RLH-2110 RLH-2110 released this 10 Apr 14:50
· 3 commits to master since this release
a4d4df4

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