Two answers, and both are correct depending on who is counting.
Your operating system, following the binary convention, treats 1 GB as 1,024 MB. Hardware manufacturers, working in decimal, treat 1 GB as 1,000 MB.
That gap is exactly why a drive advertised as 1 GB shows up slightly smaller once Windows or macOS has finished with it — nothing is missing, the two sides are simply using different rulers.