Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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?
[LanX]: good morning
[choroba]: LanX good indeed
[choroba]: very cloudy here, I planned to make some picrures, but now I don't think so
[LanX]: do you like it better now?
[choroba]: Well, getting used to it
[LanX]: several people told me they like saigon. ..
[choroba]: well, beer is good here, surprisingly
[choroba]: also, I discovered several vegan/vegetarian restaurants, so I can avoid meat
[LanX]: ha ha ... happy Czech :)
[choroba]: been to the War Remnants Museum, too. Quite a brutal experience

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2017-02-26 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (371 votes). Check out past polls.