units_convert
Convert physical quantities between units, including compound inputs, temperature offsets, and derived units, with results rounded to 12 significant digits and a citable reference.
Instructions
Convert a physical quantity to another unit, e.g. quantity="3.5 km/h", to="m/s".
Handles compound inputs ("5 ft 11 in" to "cm"), temperatures with their
offsets ("100 degF" to "degC" is 37.78, not a plain scale), and derived
units (kWh, psi, mph, g/cm**3). Unit names are English/SI symbols (m,
km, mi, ft, in, kg, lb, g, L, gal, degC, degF, K, s, min, h, km/h, mph,
J, kWh, W, Pa, bar, psi) or their common Spanish names (metros,
kilómetros, millas, pies, pulgadas, libras, kilogramos, litros, horas,
minutos...). A decimal comma with no dot in the input ("3,5 km") is read
as 3.5, not 35. No currencies (rates need the network). Returns {id,
cite, to_magnitude, to_unit, formatted} rounded to 12 significant
digits. Cite as its cite, e.g. [L-000042].
Keywords: convert, how many, in meters, in kilograms, miles to km, pounds to kilos, temperature, fahrenheit, celsius, convertir, cuántos, pasar a, en metros, en kilos, millas a kilómetros, libras a kilos, temperatura, grados.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| quantity | Yes |