Convert Units
convert_unitsConvert quantities between units across metric/imperial length, mass, speed, energy, pressure, temperature, volume, data sizes, and more. Use unit aliases like mph, celsius, or gb to get exact conversions.
Instructions
Convert a value between units (dimensional analysis via sympy).
Supports metric/imperial length, mass, time, speed, energy, power, force, pressure, temperature (°C/°F/K), volume, area, data sizes, frequency. Examples: ('60','mph','km/h'), ('100','celsius','fahrenheit'), ('1','gb','mib'). Use list_units for the full alias table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Numeric quantity to convert, in `from_unit` | |
| to_unit | Yes | Target unit alias, e.g. 'km/h', 'fahrenheit', 'mib'; see list_units for all aliases | |
| from_unit | Yes | Source unit alias, e.g. 'mph', 'celsius', 'gb'; see list_units for all aliases |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||