PHP rad2deg() Function Example

PHP rad2deg() Function Example


Posted in : PHP Posted on : January 31, 2011 at 6:16 PM Comments : [ 0 ]

The rad2deg() function is use for conversion a radian number to its corresponding degree.

PHP rad2deg() Function Example:

The rad2deg() function is use for conversion a radian number to its corresponding degree.

Syntax:

rad2deg(radian_number)

where radian_number is a redian number for process.

Example:

<?php
$return = rad2deg(3.14159265359);
echo "The value of rad2deg(3.14159265359) is : " . $return . "<br />";

$return_value = rad2deg(1.5707963267949);
echo "The value of rad2deg(1.5707963267949) is : " . $return_value;
?>

After running this example the output is:

Output:

The value of rad2deg(3.14159265359) is : 180.00000000001
The value of rad2deg(1.5707963267949) is : 90

Download Example Code

Go to Topic «PreviousHomeNext»

Your Comment:


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

 
Tutorial Topics