How precise is salinity determined via specific gravity? If one measures specific gravity to 2 significant figures, SG or PPT,then the uncertainty in the salinity is ± 0.7 (assuming that the specific gravity is correctly and accurately measured). For example, if the specific gravity were 1.027 (assuming the uncertainty of ± 0.0005 implied by 2 significant figures), then the corresponding salinity will be 35.2ppt ± 0.7. Similarly, a specific gravity of 1.023 corresponds to a salinity of 30ppt ± 0.7. I would say your 1.024 is about 32PPT.
I do not understand your Mg question? You can add/dose Mg to get there and your 1.024SG has nothing to do with it, unless you are trying to get higher MG out of your salt mix which most test on the forums gives the MG Ca and Alk levels at 1.0264SG=35PPT