Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
July letter on MSDN VFP web site
Message
From
19/07/2004 09:27:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
19/07/2004 08:37:13
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00925465
Message ID:
00925727
Views:
19
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform