In computing, one gigabyte is equal to 1024 megabytes.
This comes from the binary system computers use, where each step up in size is a factor of 1024 rather than a round 1000. So while a manufacturer might label a drive using the decimal 1000, the number your operating system reports is based on the 1024 standard.