-
Notifications
You must be signed in to change notification settings - Fork 230
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
Hexadecimal Floating Point #1550
Comments
I think there is also an explanation here along with a specific example.
|
We do already support something similar with the Would be fairly easy to special case the |
The following is from Wikipedia:
...
via the first and last paragraphs of the aforementioned section. There are some footnotes at the original article that I did not reproduce here, I thought it might be better to see them in context. |
Thanks for the reference, I was able to get a quick implementation working. I'm pretty confident it's fine, but I will add some more testing at some point before merging. |
On a related note, I verified a variety of values at |
There is a standard hexadecimal syntax for floating point numbers:
0x*.*p*
, in which the hex numeral after thep
represents a power of two by which to multiply the pointed hex numeral before it. I think it would be good if Janet had this syntax as well.The text was updated successfully, but these errors were encountered: