Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: sprintf %X endianness

by ikegami (Pope)
on May 15, 2013 at 20:08 UTC ( #1033734=note: print w/replies, xml ) Need Help??


in reply to sprintf %X endianness

Endianness is not a factor.

sprintf %d, %x, %o and %b will always print the most significant digit of the number on the left.

On all platforms,
sprintf '%d', 4660 is 4660
sprintf '%X', 4660 is 1234
sprintf '%o', 4660 is 11064
sprintf '%b', 4660 is 1001000110100

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033734]
help
Chatterbox?
[erix]: (but then there's always a next (im)possible goal)
Corion avoids running by starting on time
[choroba]: my phone showed me 1 hour 10 km which was my goal, it changed a bit after uploading to the website
[erix]: choroba I believe you ;)
[1nickt]: Corion I assume you are talking about Retry? Attempt doesn;t offer callbacks and has a much simpler interface. (Also written by someone I trust...)

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-05-24 12:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?