Name

rad2deg()

Synopsis

    float rad2deg ( float num )

The rad2deg() function converts radians to degrees. Radians are calculated as being $degrees multiplied by the mathematical constant pi, then divided by 180.

    $atan_deg = rad2deg(atan(0.4346));

Get PHP in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.