The original unit of the value. Supported units include:
The value associated with the given unit to be converted.
unit: The converted metric unit (e.g., 'MM', 'M2', 'M3', 'KG').value: The converted value in the metric system.formatToMetric('IN', 12) returns { unit: 'MM', value: 304.8 } (12 inches to millimeters).formatToMetric('FT2', 100) returns { unit: 'M2', value: 9.2903 } (100 square feet to square meters).formatToMetric('LB', 50) returns { unit: 'KG', value: 22.6796 } (50 pounds to kilograms).
Converts a given value and its unit into a standardized metric equivalent.