Math Utilities

Rad To Deg

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.

API Endpoint

GET /v1/math/rad-to-deg

Code Examples

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)

Use via MCP

Add to your AI agent

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"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I convert radians to degrees using this API?

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/π).

Can MCP tools like Cursor handle multiple radian conversions at once?

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.

What's the precision of radian to degree conversion?

The conversion maintains full floating-point precision. Common values like π/2 radians return exactly 90°, while irrational inputs preserve maximum decimal accuracy.

Does the tool handle negative radians correctly?

Yes, negative radians convert properly. For example, -π/4 radians returns -45°, maintaining the sign and quadrant information.

When should I use radians vs degrees in calculations?

Use radians for mathematical functions (sin, cos, calculus) and degrees for human-readable angles. Convert between them based on your specific use case requirements.

Try Rad To Deg Now

Get your free API key and start using Rad To Deg in seconds.

Get Free API Key