How this tool computes its result
Maintains lookup tables for five categories: length (meter, kilometer, centimeter, millimeter, mile, yard, foot, inch with conversion factors), weight (kilogram, gram, milligram, pound, ounce, ton), temperature (Celsius, Fahrenheit, Kelvin with inter-conversion formulas), volume (liter, milliliter, cubic meter, US gallons/quarts/pints/cups), and area (square meter, square kilometer, square foot, square yard, acre, hectare). For non-temperature conversions, it converts the input value to a base unit (e.g., to meters for length), then from that base to the target unit using stored factors. For temperature, it implements explicit conversion formulas: Celsius ↔ Fahrenheit via (C × 9/5 + 32), and ↔ Kelvin via (C + 273.15). Switching categories resets the from/to unit dropdowns to sensible defaults (e.g., switching to length defaults to meter → foot).
