in reply to Re: hex to bin
in thread hex to bin

That's not bin2dec, that's bin2num, unless you're running Perl on a machine that is using BCD internally.

Perl handles "num2dec" and "dec2num" so trivially that people sometimes get confused into believing that the numbers are stored as decimal internally. They're not.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Re: hex to bin
by Adam (Vicar) on Mar 09, 2001 at 22:44 UTC
    Yes. Of course, Perl programmers enjoy that level of abstraction. Not worrying (too much) about how things are really stored makes it easier to focus on the important stuff... like algorithms. Thanks for your comment though.