evanw / float-toy

Use this to build intuition for the IEEE floating-point format
155 stars 38 forks source link

Added hex input #2

Closed alex-grigoras closed 4 years ago

alex-grigoras commented 5 years ago

Hi,

Thank you very much for creating this tool, it got me out of a pinch at work 'bout a year and a half ago.

Back then I struggled with the fact that I couldn't copy-paste a hex string directly from memory. I promised myself I would add this sometime in the future. I finally managed to do it.

Please accept my pull request because I think the ability to work with hex is invaluable to a lot of developers. I tried to keep the same style in the UI and code, testing worked fine to the best of my ability.

Thanks!

alex-grigoras commented 4 years ago

Ping!

evanw commented 4 years ago

Thanks for doing this! Sorry it took me a while to get to this PR.

evanw commented 4 years ago

I had to merge this manually since it conflicted with the 16-bit float PR. Not sure why GitHub didn't detect the merge, but this PR has been merged.