Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
July letter on MSDN VFP web site
Message
De
19/07/2004 09:27:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
19/07/2004 08:37:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00925465
Message ID:
00925727
Vues:
20
>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.)

32 1's in binary = 4294967295. I got this result with the Windows Calculator. Shortcut: 2^32-1.

A number stored in binary can be either signed or unsigned. Signed is more common; in this case only 31 bits are available (the first bit is the sign: positive or negative). The above is a simplified explanation; the exact data format is usually a little different.

That leaves us with approximately 2^31 positive values, or about 2 Giga.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform