It is the same - "g" is officially used, "g" stands for gram and "m" stands for the thing being described , in this case "mass" but is normally not added when written down.
"mg" on the other hand is one thousand of a "g"
1 gram (g) = 15.43 grains
Chat with our AI personalities