Ralph Shumaker wrote:
Paul G. Allen wrote:
It's been a while (years?) since I've done anything in Perl. I need to
convert an ASCII string of ones and zeros to a double. (Actually, I
don't need to, but one of our engineers does.)
So, which one of the many possible ways to do it in Perl should I use
(put another way, please provide suggestions and I'll pick one, because
in Perl "There's more than one way to do it." :) )
If I have "10110111100011", the output should be 11,747.
10 1101 1110 0011 ?
Assuming you're talking about simple binary, I think your output
should be a tad bigger. I get 21,987.
My mistake, I guess "double" is different than decimal. Sorry.
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg