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