The numeric value to convert.
The source unit or unit system to convert from.
Optional to: UnitConversionSource(Optional) The target unit or unit system to convert to. If not provided, uses the default unit system.
Optional format: { (Optional) Formatting options for the output, including minimum and maximum decimal places.
Optional min(Optional) Minimum number of decimal places in the formatted output.
Optional max(Optional) Maximum number of decimal places in the formatted output.
An object containing:
value: The converted value as a string.display: The formatted value with unit in long form.shortDisplay: The formatted value with unit in short form.unit: The unit used for the converted value.If the RegionInfo model is not found.
Converts a numeric value from one unit to another, formats the result, and returns an object containing the converted value, display strings, and the unit.