HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

deg2rad

Description

The deg2rad of Math for PHP converts the number in degrees to the equivalent number in radians.

Syntax

deg2rad(
    float $num
): float

Parameters

num

A value in degrees

Return

The equivalent of num in radians

Examples

1 · num

<?

$num = 180;

$return = deg2rad($num);

echo $return;
3.1415926535898