M (as in MB) has meant 10^6 (1,000,000) in the S.I / metric standard since the 19th century...
[1] https://en.wikipedia.org/wiki/Kilobyte#Examples
[2] https://en.wikipedia.org/wiki/Megabyte#Definitions