-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue with reading JSON floats. #14
Comments
Also: |
Reading and printing floats correctly, let alone quickly, is highly non-trivial. Currently, shasht delegates printing to CL:FORMAT with an attempt to cleanup the output a bit. For parsing it uses the CL implementation's coerce. To avoid some of the issues with both aspects we are working on a new Lisp system, Quaviver, which handles the difficult part of reading and printing, i.e base 10 conversion with some more modern algorithms then Burger-Dybvig, etc. I've added a preliminary testing branch "quaviver" that uses these algorithms and it appears to pass the test cases given so far in this issue. |
That works, thanks! |
@yitzchak Do you have any suggested reading beyond the classic What Every Computer Scientist Should Know About Floating-Point Arithmetic? |
@sabracrolleton I don't have any suggested reading for generic floating point operations/concerns yet. We do have some references for some of the stuff we are working on for Quaviver https://github.com/s-expressionists/Quaviver/wiki/References Its not organized at all yet. If you have anything you think is worth adding please feel free to. |
Thanks for that neat lib!!
read-json-number
seems to behave incorrectly:returns:
-3.1415900000000003d0
when
returns:
-3.14159d0, 8
Am I missing anything here?
Thanks
The text was updated successfully, but these errors were encountered: