convert
Translate a quantity from one unit to another. Provide the value, source, and target units to get the transformed value and scaling factor.
Instructions
Convert a value from one unit to another.
Returns the converted value with conversion factor, or a structured error if the units are dimensionally incompatible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| to_unit | Yes | ||
| from_unit | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |