|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#25
|
|||||
|
|||||
|
"Using a similar program, you can find that -32768 is actually represented as 4294934528, which is 11111111111111111000000000000000."
Note: I said short int, short ints are 16 bits. I do it in short ints, because that's what i'm use to, and I don't feel like writing 32 zeros. from my experiences when i was 13 or so working on my C server i used short ints. V this is my experience with them 32767 Before: 0111111111111111 32767 health + 1 health After: 1000000000000000 -32768 poor guy Ex: 1111111111111111 -1 -1 + 1 Result: 00000000 00000000 0 Oh, lol, I didn't realize i put "11111111 11111111 = -32768" I'm on 6 hours of sleep for 3 days pardon me. Didn't go sleep saturday night. I don't see the point of the inverse and add 1 you were doing. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Obscure PBASIC for RoboEmu | rbayer | Programming | 1 | 28-03-2003 23:57 |
| PBasic 2.5 vs. 2.0 | Anthony Kesich | Programming | 6 | 09-02-2003 22:06 |
| RoboEmu v.1a (another PBASIC emulator) | rbayer | Programming | 0 | 07-07-2002 00:45 |
| emulationFIRST (aka PBasic emulator) | Matt Leese | Programming | 5 | 30-06-2002 12:06 |
| Another PBASIC Question | Ian W. | Programming | 4 | 31-01-2002 21:36 |