rad2deg

Converts the radian number to the equivalent number in degrees

Description

float rad2deg(float $num)

This function converts num from radian to degrees.

Parameters

num

A radian value

Return Values

The equivalent of num in degrees

Examples

Example #1 rad2deg example

<?php

echo rad2deg(M_PI_4); // 45

?>

See Also

  • deg2rad