These days life is different. You allocate objects. If you're storing a boolean, you create a boolean object. Who knows how that's represented under the hood, but it certainly isn't represented in one bit of RAM. Most people don't even use the bitwise operators offered through the programming languages given to them. Sure, some do. But most do not.
And so now we get into our prefixes: kilo, mega, giga, terra, and peta (and beyond, I suppose!)
Many people still want these prefixes to be based on powers of 2. One kilobyte is 1024 bytes (2^10). One megabyte is 1024*1024 bytes (2^20). Etc. It's an OK system, but it really makes little sense. Why is a kilobyte 2^10? Because the number, when converted to decimal, is the power-of-two number that's closest to 1,000. 2^11 and 2^9 simply aren't as close to 1000 as 2^10.
Anyhow, all this mades some (but not much) sense in terms of RAM addressing. Then people wanted disks to work the same way, so disk sectors were often 256 or 512 bytes large - not due to any physical or logical requirement, mind you, but because it was brain-dead easy to put a page of RAM into a sector. Again, performance at 1 MHz ruled the day (that M, oddly, means exactly "1,000,000")
At the same time the network guys were not interested in this "new math". They did things in bits per second. Bytes? No way! That was 8 bits, or an octet. kilo? That meant 1000. Nothing else. Mega? 1,000,000. 100 Megabits per second meant 100,000,000 megabits in one second. And it still does to a network guy.
But then the uncultured programmers got in there and confused everyone. They started to apply their terminology to other areas for NO REASON. What does 100 MB/second mean? WHO THE FUCK KNOWS!
The disk drive guys got yelled at for NOT using the stupid convention. Dumbo programmers wanted 1 GB of storage to mean 1024 * 1024 *1024. Why? Because it was bigger!
Let's say you are dumping 1 billion records onto a disk. Each record is 40 bytes long. Quick, do you have enough room if you have 38.1 GB free? WHO KNOWS! Because bonehead programmers confused everyone.
It's time to give up the obsolete base-2 notion of kilo, mega, and giga. If you really love powers of two, use them explicitly like a REAL tech expert. My laptop has 2^33 bytes of RAM. Done. And now how many pages of RAM is that? Simple math.