I am sure that this request is incomplete without an exact context, so I will try to explain this and I will try to be clear
I need to store all the information presented on the page, grams, milligrams, micrograms and kilojoules.
All of this data is similar to 99999.99g (in kilojoules), so I could use DECIMAL (7.2) or DECIMAL (5.2) with older versions of MySql.
However, I saw on the mysql site that the DECIMAL data type is heavier than MEDIUMINT (am I mistaken?), Which may be enough to store data.
Basically, I will do numerical operations with decimals or float from the user machine, and do not need to store them again, so I doubt that in this case the best data type.
and what is the best data type in this case?
vitto source share