bgkillas / kalc

a complex numbers, 2d/3d graphing, arbitrary precision, vector/matrix, cli calculator with real-time output and support for units
GNU General Public License v3.0
188 stars 6 forks source link

addition does not work #7

Closed MarkSwanson closed 1 year ago

MarkSwanson commented 1 year ago

I'm getting some weird results when adding 2 numbers together.

47 + 42 1.974e3

47 + 42 + 5.51 543837/50 1.087674e4

$ cat -p ~/.config/kalc.config sci=true deg or grad or rad base=10 tau=false polar=false frac=true rt=false deci=12 color=true prompt=true comma=false prec=512 frac_iter=50 xr=-10,10 yr=-10,10 zr=-10,10 2d=20000 3d=400 point=. line=false multi=false tabbed=false vars=true debug=false small_e=true

bgkillas commented 1 year ago

i sure did an oopsie, i really should test with spaces more, should be fixed now in master, probably alot of other space related bugs, however i removed '5 2' being assumed to be 5*2(now 52) other assumed multiplications still apply just not one caused by spaces. hopefully i find a way to fix nicely

bgkillas commented 1 year ago

fixed multiplication issue