
I won't comment on spacing on "$1m", but at least capitalize the M since it supposedly means millions not millis?
I have seen both m and M used so I had a quick look online. There does not seem to be any widely used standard for this. In fact, there is a bit of confusion on the topic - I found style guides providing contradictory advice. I guess the best thing is to use what your audience finds acceptable and to be consistent with whichever you choose.