Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

toHexString and toOctalString  RSS feed

 
Harikrishna Gorrepati
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, How to understand the following toHexString and toOctalString methods(). Please advice

 
Stephan van Hulst
Saloon Keeper
Posts: 6980
110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
toHexString simply converts an integer into its hexadecimal string representation. toOctalString does the same thing, except the representation is octal, not hexadecimal.

If you do not understand what this means, look up what numeral system and radix are.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!