Please wait while we load your page...

PasswordSentry

Latest Version [8.00202205221] Last Updated [May-22-2022]

Tools

PHP Manual [rad2deg]

Protect Your Website Today


PHP Manual || Math Functions

(PHP 4, PHP 5, PHP 7)

rad2deg Converts the radian number to the equivalent number in degrees

Description

rad2deg ( float $number ) : float

This function converts number from radian to degrees.

Parameters

number

A radian value

Return Values

The equivalent of number in degrees

Examples

Example #1 rad2deg() example

<?php

echo rad2deg(M_PI_4); // 45

?>

See Also

  • deg2rad() - Converts the number in degrees to the radian equivalent



PHP Manual || Math Functions