float deg2rad ( float $number )
deg2rad() converts the number in degrees to the radian equivalent
※ available F/W version : all
Returns the radian equivalent of $number
<?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
?>
This function is identical to the PHP group’s deg2rad() function.