Storage units and file sizes
Bit to pebibyte in steps of 1024, and calculating image and sound file sizes.
Transcript
Data is measured in bits. A bit is a single zero or one. Four bits make a nibble, and eight bits make a byte.
Bigger units go up in steps of one thousand and twenty four: the kibibyte, mebibyte, gibibyte, tebibyte, and pebibyte.
To move to a bigger unit, divide by one thousand and twenty four. To move to a smaller unit, multiply. So two mebibytes is two thousand and forty eight kibibytes.
To find a file size, multiply the values to get the size in bits. Then divide by eight for bytes, and by one thousand and twenty four for each bigger unit.
A picture one thousand and twenty four by five hundred and twelve pixels, at sixteen bits, is about eight million bits. Divide by eight, then by one thousand and twenty four twice, and it is exactly one mebibyte.
A sound at eight thousand one hundred and ninety two hertz, sixteen bits, lasting eight seconds, is about a million bits. Divide by eight, then by one thousand and twenty four, and it is one hundred and twenty eight kibibytes.
Bits, bytes, then steps of one thousand and twenty four. Multiply to get bits, and divide to get the unit you need.
More in this series
2:41Denary, binary and hexadecimal
Place values, converting denary to binary and back, and why hex is used for bytes.
2:30Binary addition, overflow and shifts
Adding binary numbers with carries, overflow when a ninth bit is needed, and logical shifts as multiply and divide.
2:12Two's complement
Negative numbers in binary: the -128 place value, invert and add one, and reading a signed byte.
1:45Text: ASCII and Unicode
Character sets give every character a code. ASCII's 128 codes, Unicode's millions, and the storage trade-off.
1:27Images
Pixels, resolution, colour depth, image file size and metadata.
1:38Sound
Sampling an analogue wave: sample rate, bit depth, quality against file size.
1:58Compression
Why files are compressed, lossy against lossless, and run-length encoding step by step.
5:38Unit 1 quiz
Ten questions with a think-time countdown and explained answers.