Skip to content

Add hexadecimal float literals (closes #2863)#2925

Merged
JeffBezanson merged 4 commits intoJuliaLang:masterfrom
andrioni:hexliteral
Apr 26, 2013
Merged

Add hexadecimal float literals (closes #2863)#2925
JeffBezanson merged 4 commits intoJuliaLang:masterfrom
andrioni:hexliteral

Conversation

@andrioni
Copy link
Copy Markdown
Member

These commits add hexadecimal floating-point literals to femtolisp and to Julia, using the standard C99 notation.
Currently only Float64 is supported in Julia (both float and double are supported in femtolisp), as I ran into some parsing issues with Float32.
Should close #2863.

@StefanKarpinski
Copy link
Copy Markdown
Member

Awesome! I'm gonna let @JeffBezanson review, but this looks great. Might want to add some test cases for particularly nasty edge-values like realmax() and realmin() and eps(0.0) and values around there.

@andrioni
Copy link
Copy Markdown
Member Author

dca8f0a rewrites the tests and now supports #\P.

JeffBezanson added a commit that referenced this pull request Apr 26, 2013
Add hexadecimal float literals (closes #2863)
@JeffBezanson JeffBezanson merged commit c8b99d9 into JuliaLang:master Apr 26, 2013
@andrioni andrioni deleted the hexliteral branch April 26, 2013 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hexadecimal floating-point literals

3 participants