13,626,876 members
See more:
Well...False is 00000000 so true must be 11111111=-1 in decimal system(255 unsigned)
In all of the other programming languages I know
(not many) true is equal to -1 which makes more sense...
how can NOT(FALSE) be something else than NOT(00000000) ?
Thank you !!
Posted 6-May-14 8:32am
Maciej Los 6-May-14 14:53pm

Sample code would be appreciated.
Richard MacCutchan 6-May-14 15:14pm

Because.

To clarify: FALSE is defined as zero, and TRUE is defined as not zero, or in other words any non-zero value, or expression.

Can you cite any reference to any programming language documentation where -1 evaluates to true?

## Solution 1

Wikipedia:
The comparison operators ('>', '==', etc.) are defined to return a signed integer (int) result, either zero (for false) or 1 (for true)

Top Experts
Last 24hrsThis month
 OriginalGriff 155 CHill60 140 Jochen Arndt 135 Dave Kreskowiak 85 Gerry Schmitz 50
 OriginalGriff 2,652 ppolymorphe 1,300 Jochen Arndt 870 Richard MacCutchan 817 Dave Kreskowiak 658