There are 1,024 megabytes in 1 gigabyte.
The figure is 1,024 rather than 1,000 because storage is counted in binary, though some drive makers quote the round 1,000 for marketing — which is why a "1 GB" drive sometimes shows up slightly smaller than you expect.