[Tfug] Speaking of zero...

Paul Scott waterhorse at ultrasw.com
Mon May 14 21:50:35 MST 2007


Robert Hunter wrote:
> Hi, William.
>
>   
>> William Stott wrote:
>>     
>>> Recently, a conversion on zero was brought up in a class I am taking.
>>>       
>
> If you don't mind me asking, which class?
>
> Hi, Paul.
>
>   
>> The beginning is that there are two kinds of hardware even though there
>> aren't many examples of one of them (one's complement).
>>
>> 1.  twos complement:  0 (all bits off) is zero, all bits on is -1.
>> Lowest possible negative integer is 2**n (n is number of bits) highest
>> possible positive integer is 2**n - 1
>>     
>
> Substitute (n-1) for n...
>   
Duh!!  I knew that.  Thanks,

Paul





More information about the tfug mailing list