Unit Convert
Convert between measurement units.
Common Conversions
# Temperature: Celsius to Fahrenheit
echo "scale=2; (30 * 9/5) + 32" | bc
# Distance: km to miles
echo "scale=4; 42.195 * 0.621371" | bc
# Weight: kg to lbs
echo "scale=4; 75 * 2.20462" | bc
# Storage: bytes to MB
echo "scale=2; 1073741824 / 1048576" | bc
Tips for AI Agents
- Use
unitscommand if available for comprehensive conversion. - Always specify precision with
scale=Nin bc.