|
-
Oct 3rd, 2000, 07:22 AM
#1
Thread Starter
Frenzied Member
Since I now know how (wow how many -ow ) bits and bytes work, I want to know how many bits (or bytes, I don't care) VB reserves for a variable.
I mean how many bits/bytes does a string/integer/long/double/single/etc. use in the memory.
And how many numbers can be in a Integer/long/double/single/etc. so I know wich variable to use for wich sort of number.
I know for example
101 in binary = 5 (1+0+4) in decimal, but how does it work with for example 5.5? Does the computer use a few bytes for a number with decimals?
Like (0000010100000101) would be 5.5
But how does the computer know if it's a decimal or not?
Code:
_________ ________
|00000101| |00000101|
|^integer| |^decimal|
That'll clear some thinks up for me, thanx!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|