Converts radian measurements to degrees with mathematical precision. Access via MCP in Cursor or Windsurf for instant angle conversions, or call GET /v1/math/rad-to-deg with your radian value. Returns exact decimal degrees — π radians becomes precisely 180°. Essential for trigonometry, graphics programming, and scientific calculations where accuracy matters.
curl "https://tinyfn.io/v1/math/rad-to-deg" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/math/rad-to-deg', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/math/rad-to-deg',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's math tools:
{
"mcpServers": {
"tinyfn-math": {
"url": "https://tinyfn.io/mcp/math",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Send a GET request to /v1/math/rad-to-deg with your radian value as a parameter. The API returns the equivalent degrees using the formula: degrees = radians × (180/π).
Each MCP call processes one radian value. For batch conversions in Cursor or Claude Code, make multiple tool calls or use the REST API in a loop.
The conversion maintains full floating-point precision. Common values like π/2 radians return exactly 90°, while irrational inputs preserve maximum decimal accuracy.
Yes, negative radians convert properly. For example, -π/4 radians returns -45°, maintaining the sign and quadrant information.
Use radians for mathematical functions (sin, cos, calculus) and degrees for human-readable angles. Convert between them based on your specific use case requirements.