convert.unit
Convert units of mass, length, volume, area, and temperature with exact, case-insensitive factors. Rejects cross-dimension conversions.
Instructions
Deterministic unit-of-measure conversion: mass (g/kg/lb/oz/t…), length (m/km/in/ft/mi…), volume (l/ml/gal/qt/cup…), area (m2/ft2/acre/ha), temperature (C/F/K). Case-insensitive with aliases (kg/kilogram). Returns the exact result + dimension. Cross-dimension (kg→m) is rejected. Ground-truth factors instead of an LLM approximation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target unit (same dimension). | |
| from | Yes | Source unit (alias-tolerant). | |
| value | Yes | Value to convert. |