Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   PBASIC sucks (http://www.chiefdelphi.com/forums/showthread.php?t=16694)

Ameya 27-01-2003 13:00

Quote:

Originally posted by rbayer
I'm not going to argue over this one: x86 (and most other architectures) use two's complement for representing negative numbers. Under that system, you invert all the bits and add 1. It's just the way it is. Don't believe me? Go ahead and read this.
No need to argue, since you're both right. Rwaliany is using the actual definition of two's complement (the highest bit represents the opposite of what it does in an unsigned int (so 10000000 = -128 if it's a signed bit and +128 if it's unsigned)). Rbayer is using an easy shortcut to calculating the two's complement.

Gobiner 29-01-2003 03:16

A skillful programming isn't limited by the law, either. Wait, what I meant to say was that a skillful programmer is limited by the language, at least when we're talking PBASIC. I'd like to see someone who can make their robot do differentiation. If you're talking QBASIC versus C, then it doesn't matter. PBASIC simply doesn't do alot of things. The difference is in the context. PBASIC could do anything a person could ever want their robot to do, if they're smart enough and can devote the time to doing it. If you couldn't do everything feasible/useful I think FIRST would change things.


All times are GMT -5. The time now is 09:39.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi