mal icon indicating copy to clipboard operation
mal copied to clipboard

Floats don't work in the python implementation.

Open vipenzo opened this issue 2 years ago • 1 comments

In the python implementation float numbers are not accepted by the reader. There is a bug in reader.py at line 34 (read_atom function)

It is now: elif re.match(float_re, token): return int(token) should be: elif re.match(float_re, token): return float(token)

vipenzo avatar Sep 22 '23 13:09 vipenzo

Hello , solve your problem , idk if my pull request will be accepted but here is how i solve it:

https://github.com/kanaka/mal/pull/654

i just change the line 34 to

elif re.match(float_re, token): return float(token)

jero98772 avatar Jun 26 '24 02:06 jero98772

This should be resolved now. Thanks for the catch!

kanaka avatar Aug 06 '24 20:08 kanaka