:: Re: [DNG] Studying C as told. (For …
Startseite
Nachricht löschen
Nachricht beantworten
Autor: Peter Olson
Datum:  
To: dng, Edward Bartolo
Betreff: Re: [DNG] Studying C as told. (For help)
> On June 29, 2016 at 3:06 AM Edward Bartolo <edbarx@???> wrote:

> Pg 78. "... our version of itoa does not handle the largest negative
> number, that is, the value of n equal to -(2^(wordsize - 1))".
>
> 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.

Peter Olson