convert_units
Convert dimensionful values such as '32 degF' or '120 km/hour' to compatible target units, rejecting dimensional mismatches as errors.
Instructions
Convert a dimensionful value such as 32 degF, 120 km/hour, or 5 psi to a compatible
target unit. Dimensional mismatches are errors rather than guessed conversions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| to_unit | Yes | ||
| precision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Output unit, when dimensionful. | |
| exact | No | Exact symbolic result when available. | |
| result | Yes | Primary result; strings preserve mathematical precision. | |
| details | No | ||
| warnings | No | ||
| operation | Yes | Operation actually performed. | |
| approximate | No | Numerical approximation at the requested precision. | |
| normalized_input | No | Canonical input used by the computation engine. |