There's more than one way to do things | |
PerlMonks |
Re: Problem with integer to decimal conversionby dvergin (Monsignor) |
on May 19, 2002 at 14:42 UTC ( [id://167662]=note: print w/replies, xml ) | Need Help?? |
As talexb says, it would be helpful if you told us why you are doing this.
Because of the way you state the question, it seems that you may be under the impression that there is such a thing as a binary value as distinct from a decimal value. That is not the case. Inside Perl, a numeric value is just a numeric value. So what you are doing only applies to the display of a value or the representation of the value as a string consisting of a series of '1' characters and '0' characters -- which is different from actual binary bits. And that may be exactly what you need. But you don't tell us how this gets used, so it is hard to give you a more helpful response.
In Section
Seekers of Perl Wisdom
|
|