:: Re: [DNG] Studying C as told. (For …
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Edward Bartolo
Date:  
À: Matthew Melton, dng
Sujet: Re: [DNG] Studying C as told. (For help)
ROFL.

Brexit must be having its adverse effects!

On 29/06/2016, Matthew Melton <mjm@???> wrote:
> I think I'm being pedantic here but in the context of an 8 bit 2's
> compliment word the binary rep of -1 is 11111111 and -128 is 1000000.
>
> So that -1 + 1 = 0 the carried bit gets dropped.
>
> So that
>
> 0 < 127 < -128 < -1
>
> Yes I am failing to be funny.
>
> I'll be under my rock if you wish to ignore me.
>
> Matt
>
>> On 29 Jun 2016, at 08:43, Edward Bartolo <edbarx@???> wrote:
>>
>> Hi,
>>
>> You know pretty well that I am in the right about this. Yes, it is
>> incorrect to state it is the largest negative number without
>> explicitly stating that one is talking about its modulus.
>>
>>
>>
>>> On 29/06/2016, KatolaZ <katolaz@???> wrote:
>>>> 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  ]
>>> _______________________________________________
>>> Dng mailing list
>>> Dng@???
>>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>> _______________________________________________
>> Dng mailing list
>> Dng@???
>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

>
>