|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Negatives in Binary
I'm reading a book on Fortran 90/95 right now, and I was wondering, in general math, how would you go about making a binary number negative without a given bit length? For example, how would I know 1110111101 was -67 rather than 957? I remember something about the leftmost bit being 1, it's negative, and if it's 0, it's positive. But how would I know if 1011 is 11 or -5?
|
| 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 |