commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
It handles all possible combination of the hex bytes, including NaNs, Infinities, Normalized and Subnormal Numbers...
This crazy DC stuff spent me a few days to write, optimize, polish and squeeze so that it works within the tight 255 character bound...
You can modify it easily for other IEEE754 numbers, say, half, double, double-extended, quadruple
(I hope someone will find this useful and submit more dc code to commandlinefu!)
There are 4 alternatives - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.