Paul G. Allen wrote:
It seems he wants to convert as follows:
'So what I want to do with perl is, I want to convert the string
"10001111 11000010 11110101 10100010 11100100 11111111 11100000 0" to 31.31
(which is the value of d variable)'
That's not 31.31 even if I *do* extend that to the correct number of bits.
See: http://babbage.cs.qc.edu/IEEE-754/Decimal.html
31.31 == 403F4F5C28F5C28F
And Perl agrees (although it is little endian on my Intel machine so you
have to flip the order).
Converting: 31.31
0 143 194 245 040 092 079 063 064
8f c2 f5 28 5c 4f 3f 40
( \ O ? @
10001111 11000010 11110101 00101000 01011100 01001111 00111111 01000000
-a
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg