deg2rad()


float deg2rad ( float $number )

Description

deg2rad() converts the number in degrees to the radian equivalent

※ available F/W version : all

Parameters

Return values

Returns the radian equivalent of $number

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

rad2deg()

Remarks

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