:: Re: [DNG] Studying C as told. (For …
Página Principal
Delete this message
Reply to this message
Autor: KatolaZ
Data:  
Para: dng
Assunto: Re: [DNG] Studying C as told. (For help)
On Wed, Jun 29, 2016 at 09:06:22AM +0200, Edward Bartolo wrote:
> Hi,
>
> 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.
>


The mentioned number is the largest in modulus, which is the one that
requires the largest number of bits to be represented. So I can't
understand your surprise...

HND

KatolaZ

-- 
[ ~.,_  Enzo Nicosia aka KatolaZ - GLUGCT -- Freaknet Medialab  ]  
[     "+.  katolaz [at] freaknet.org --- katolaz [at] yahoo.it  ]
[       @)   http://kalos.mine.nu ---  Devuan GNU + Linux User  ]
[     @@)  http://maths.qmul.ac.uk/~vnicosia --  GPG: 0B5F062F  ] 
[ (@@@)  Twitter: @KatolaZ - skype: katolaz -- github: KatolaZ  ]