in reply to Bitwise operators
When you're in the mood to check for correctness, have a look at pack. You can solve this problem in perl with pack("f", 3.14159). Though, I suspect you want the long answer so you can learn how pack does it's magic. I have learned that you won't learn anything unless you do it yourself, but if you do a google search, you're likely to turn up c-code for BCD.
-Paul
|
|---|