rad2deg

(PHP 4, PHP 5, PHP 7)
Converts the radian number to the equivalent number in degrees
float rad2deg ( float $number )

This function converts number from radian to degrees.

Parameters:
number

A radian value

Returns:

The equivalent of number in degrees

Examples:
rad2deg() example
<?php

echo rad2deg(M_PI_4); // 45

?>

See also:

deg2rad() -

doc_php
2016-02-24 16:02:31
Comments
Leave a Comment

Please login to continue.