mal
mal copied to clipboard
Floats don't work in the python implementation.
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)
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)
This should be resolved now. Thanks for the catch!