Convert a value from grams to milligrams.
Result = input × 1000
Example: 1 grams ≈ 1000 milligrams
Convert back to grams