rad2deg()


float rad2deg ( float $number )

Description

rad2deg() converts $number from radian to degrees

※ available F/W version : all

Parameters

Return values

Returns the equivalent of $number in degrees

Example

<?php   
$deg = 45.0;

$rad = deg2rad($deg);
$deg = rad2deg($rad);

echo "degree = $deg\r\n";  // OUTPUT: degree = 45
echo "radian = $rad\r\n";    // OUTPUT: radian = 0.78539816339745
?>

See also

deg2rad()

Remarks

This function is identical to the PHP group’s rad2deg() function.