kobalicek / mathpresso

Mathematical Expression Parser and JIT Compiler
Other
141 stars 16 forks source link

Decimal numbers parser bug #15

Closed Zueuk closed 6 years ago

Zueuk commented 6 years ago

Numbers like 10.5 are parsed as 15.0

I believe this can be fixed by removing size_t scale = 0; at mptokenizer.cpp, line 233

kobalicek commented 6 years ago

I'm finally getting time to check this issue, sorry for waiting

kobalicek commented 6 years ago

Your proposed fix is correct, thanks a lot!