The long and the short of it
The format of abbreviations, in particular whether they end with a full stop or not, might seem a bit capricious. But the format of abbreviated words follows a fairly simple rule.
Small m or big M?
The abbreviation m is used as a suffix after a number (50m), and the SI prefix M is used before a unit of measure (50 Mt). They are not interchangeable.