Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^7: converting binary to decimal

by tybalt89 (Monsignor)
on Jul 02, 2025 at 16:30 UTC ( [id://11165532]=note: print w/replies, xml ) Need Help??


in reply to Re^6: converting binary to decimal
in thread converting binary to decimal

Are you running a 32-bit perl? It seems your sprintf has a problem with 18 digit numbers. Try changing $size to 8 or 9. (I don't have a 32-bit perl to test on.)

Also replace s/0+(?=.)// with s/^0+(?=.)//

Replies are listed 'Best First'.
Re^8: converting binary to decimal
by harangzsolt33 (Curate) on Jul 02, 2025 at 21:20 UTC
    THANK YOU! IT WORKS!!!! Yes, when I am on Windows, it is 32-bit.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2026-05-13 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.