• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

x = ~(0xFFFFFFF1)

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, can anyone advise me on where I can read up (what topics) for questions such as this? I know "~" changes all 1s to 0s and vice versa but how do you convert 0xFFFFFFF1 into a number that is easy to read? Similary, how do you convert a number like 18 into those alphabet stuff?
 
Ranch Hand
Posts: 2412
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Shanel Jacob:
Hi all, can anyone advise me on where I can read up (what topics) for questions such as this? I know "~" changes all 1s to 0s and vice versa but how do you convert 0xFFFFFFF1 into a number that is easy to read? Similary, how do you convert a number like 18 into those alphabet stuff?



Given the last sentence, it appears you are not familiar with hexadecimal. Actually 0xFFFFFFF1 is a number that is pretty easy to read especially when using a bit operator.

You should be able to find many resources to help you understand hexadecimal numbers.

Here is one.

http://www.danbbs.dk/~erikoest/hex.htm
 
Shanel Jacob
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Great link. Thank you
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic