Le 29/06/2016 11:54, Peter Olson a écrit :
Do these authors understand what negative numbers are?! Describing
>-(2^(wordsize - 1)) as the LARGEST negative number clearly shows they
>have no idea!
>
>For the set of integers, as is the case above, the largest negative
>number is -1. The negative number being mentioned is the SMALLEST in
>the set that can be represented by wordsize.
>
No, in the 8 bit world, the range is (-128, 127)
In the 16 bit world, the range is (-32768, 32767)
They are talking about numbers, so the largest such number is the most negative.
You might want to think about what is being said before you make a claim that
something is idiotic.
Edward is right here. The thing is just badly expressed; these
authors mean the negative number with the largest absolute value.
Otherwise, whatever the number of bits, the largest negative integer is,
of course -1.
_______________________________________________
Dng mailing list
[email protected]
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng