Convertir consumo de combustible
convert-fuel-economyConvierte rendimiento de combustible entre km/L, L/100 km y mpg (EE. UU. e imperial). Cuándo: hay que convertir una cantidad entre unidades con factores de definición exactos. No para: convertir volumen entre unidades (convert-volume). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Converts fuel economy between km/L, L/100 km, US mpg and imperial mpg (inverse relationship for L/100 km). When: a quantity has to be converted between units with exact definitional factors. Not for: converting volume between units (convert-volume). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target unit (omit for all) (string; optional; up to 20 chars). | |
| from | Yes | km/l, l/100km, mpg or mpg_imp (string; required; up to 20 chars). | |
| value | Yes | Value (number; required; > 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| value | No | any JSON value | |
| result | No | any JSON value |