Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Problem with integer to decimal conversion

by dvergin (Monsignor)
on May 19, 2002 at 14:42 UTC ( [id://167662]=note: print w/replies, xml ) Need Help??


in reply to Problem with integer to decimal conversion

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.

  • Comment on Re: Problem with integer to decimal conversion

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://167662]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found