|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Negatives in Binary
Yes, when the "high order" bit is on it is a negative number, but it doesn't have to be. It depends on your code and what you wish to do with the value or how you wish to treat it.
As for a given bit length it is always in terms of the field type. a byte = 8 bits with high bit as sign bit, a word = 16 bits again high bit is the sign bit, and so on. I hope this helps. |
|
#2
|
||||
|
||||
|
Re: Negatives in Binary
So the biggest and smallest numbers allowed in a byte are 255 and -256? what would I do if I wanted to convert the number 3485 to binary?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Refrain from the negatives | Arefin Bari | General Forum | 19 | 10-05-2006 22:43 |
| Reading binary data from a file and writing it in VB | complete | Programming | 1 | 02-01-2006 21:21 |
| binary in C | sciguy125 | Programming | 9 | 13-11-2005 22:12 |
| Binary in Rose is Rose | MisterX | Chit-Chat | 8 | 11-02-2004 18:26 |
| delphi: binary sort | archiver | 2000 | 0 | 24-06-2002 00:30 |