Converts kilometers per hour to miles per hour with mathematical precision. Use via MCP in Cursor or Windsurf, or call GET /v1/convert/speed/kph-to-mph?kph=100. Returns exactly 62.137119 mph for 100 kph. Essential for international speed limit comparisons, vehicle specs, and weather data processing where accuracy matters more than rounded approximations.
curl "https://tinyfn.io/v1/convert/speed/kph-to-mph" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/convert/speed/kph-to-mph', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/convert/speed/kph-to-mph',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's conversion tools:
{
"mcpServers": {
"tinyfn-conversion": {
"url": "https://tinyfn.io/mcp/conversion",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Call the kph-to-mph tool with your speed value. In Cursor or Claude Code, the MCP integration handles the conversion automatically with full precision.
The tool uses the precise factor: 1 kilometer per hour = 0.62137119223733 miles per hour, not the rounded 0.621 approximation.
No, this tool converts one kph value per request. For batch conversions, make multiple API calls or use the MCP tool iteratively.
Eliminates rounding errors and provides consistent precision across applications. Especially useful when AI agents need exact speed conversions for data analysis.
The tool converts any numeric input, including zero and negative values. -50 kph returns -31.068559 mph mathematically.