Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
July letter on MSDN VFP web site
Message
De
19/07/2004 08:37:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00925465
Message ID:
00925706
Vues:
18
Ken said "A full 32-bit number (32 one's in a binary number) equals 2 GB"

It's actually equal to 3,221,225,472 (3.2gb). (2^0 is used in true binary.)

If you want to drop down one bit (sign), then we're talking 1,610,612,736. In "micro-speak", this rounds off to 2gb.


>Nope. 2^0 doesn't take any bits to represent. 2^1=2 is one bit, 2^32=4GB 32=bit. IOW, 1byte=8bit, 4bytes=32 bits.
>
>>2 to the zero power through 2 to the 31st power is 32 bits.
>>
>>>>
>>>>A full 32-bit number (32 one's in a binary number) equals 2 GB, so numbers based on 32-bits cannot address address space beyond 2 GB.
>>>
>>>A full 32-bit number (2^32 - unsigned integer) is equal 4G. 2GB can be represented by 31-bit number (2^31).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform