September 2001
Intermediate to advanced
768 pages
32h 45m
English
double rad2deg(double radians) Converts a value in radians to its counterpart in degrees.
Returns:
Floating-point value in degrees
Description:
Returns the number of degrees represented by the radians parameter.
Version:
PHP 3 since 3.0.4, PHP 4
See also:
deg2rad()
Example:
$arc_rad = pi() / 2; // pi/2 is one quarter of a circle $arc_deg = rad2deg($arc_rad); echo "$arc_rad radians is equivalent to $arc_deg degrees"; |
Read now
Unlock full access