# conversion of binary number

Page 1 of 1

## 2 Replies - 1168 Views - Last Post: 06 May 2009 - 05:22 PMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=103606&amp;s=aa1c9854d981ebc1ffff15576f6efb6f&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 sonirameshr

Reputation: 0
• Posts: 6
• Joined: 25-November 08

# conversion of binary number

Posted 05 May 2009 - 11:46 PM

how to find out binary of a negative number for example -9. pls send me its urgent...
bcoz i need this in my project work
Is This A Good Question/Topic? 0

## Replies To: conversion of binary number

### #2 computerfox

• straight vegetarian kid

Reputation: 50
• Posts: 3,772
• Joined: 29-January 09

## Re: conversion of binary number

Posted 05 May 2009 - 11:52 PM

that's nice...

while(0=0){
System.out.println("I'm sorry, but we don't do your homework for you...");
System.out.println("This isn't a Burger King drive thru...");
System.out.println("Please the code you need help with...");
}
}

there be your A+ worth of code mate

### #3 pbl

• There is nothing you can't do with a JTable

Reputation: 8378
• Posts: 31,956
• Joined: 06-March 08

## Re: conversion of binary number

Posted 06 May 2009 - 05:22 PM

sonirameshr, on 5 May, 2009 - 10:46 PM, said:

how to find out binary of a negative number for example -9. pls send me its urgent...
bcoz i need this in my project work

int x = -9;

x contains the binary of -9 what else do you need