in reply to Re^3: decimal to binary conversion need help
in thread decimal to binary conversion need help
Now, if your routine took a string, and then did the "multiply by 10 and add the next digit" trick for the entire string, then you'd be converting "decimal to number to binary".
And yes, this does make a difference. It helps to understand that Perl is not thinking in decimal, especially when it comes to floating point values (the 10 * 0.1 != 1.0 problem).
So, even if you wanna sweep it under the rug, my followup is to help inform others that are reading, so that they can be accurate in their understanding and assistance.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: decimal to binary conversion need help
by thor (Priest) on Jan 06, 2005 at 20:09 UTC | |
|
Re^5: decimal to binary conversion need help
by ambrus (Abbot) on Jan 06, 2005 at 21:09 UTC |