This is something that is generally confusing to the average computer user;
First, the prefixes kilo-, mega-, giga- really mean, in SI (international system of measure, "systeme international in French"), x1000 (10^3), x1,000,000 (10^6), and x1,000,000,000 (10^9) respectively. So when you see "300gb," in SI, it techincally refers to 300,000,000,000 bytes of data.
However, in common computer usage, the multiplier is not an exact 1,000 for each order of magnitude. In computer usage, each order of magnitude is 1024 times the previous (or 2 to the 10th power). So for example, while 1 kilobyte technically means 1000 bytes, in common computer usage it is 1024 bytes.
To avoid this confusion, someone came up with new prefixes for the computer world; 1024 bytes is 1 "kibibyte" (kilo- binary byte). Abbreviation would be KiB. The corresponding unit for a computer gigabyte is a "gibibyte" abbreviated GiB. So your hard drive is technically a 300gigabyte hard drive, but in gibibytes, it's about 279 which is what you're seeing. The "kibi" unit of measure isn't really in widespread usage yet though.
Hopefully that cleared some things up instead of confusing you more....