perl5
perl5 copied to clipboard
[feature] have `hex()` (and maybe `oct()`) accept floating point notation as well
https://github.com/Perl/perl5/issues/18049
so your proposal would require perl's numification of a string to start recognising 0x prefixes for the first time, which is a major change, and one which I would oppose
Okay. I'm convinced it is not a good idea to let perl grok hex float strings straight. But wait... we have hex()!!
say hex('0x1.921fb54442d18p+1'); # unfortunately 1
Should we not consider having hex() (and maybe oct()) accept floating point notations as well? I think that is safer than the previous proposal.
Dan, not so integral