• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

numbers

 
shabbir zakir
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
how does numbers are represanted in java.for instance how
number 4 is represented.how to convert any number in binary
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3715
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a static method toBinaryString(int) in Integer class. Play with it a little and you'll understand.
-Paul.
------------------
Get Certified, Guaranteed!
(Now Revised for the new Pattern)
www.enthuware.com/jqplus
 
Jane Griscti
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shabbir,
I've some notes on working with binary, hex, and octal numbers at http://webhome.idirect.com/~jgriscti/oper/binhex.html.
Hope they help.
------------------
Jane
The cure for boredom is curiosity.
There is no cure for curiosity.
-- Dorothy Parker
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic