PHP 8.4.1 Released!

rad2deg

(PHP 4, PHP 5, PHP 7, PHP 8)

rad2deg Converts the radian number to the equivalent number in degrees

Açıklama

rad2deg(float $num): float

This function converts num from radian to degrees.

Bağımsız Değişkenler

num

A radian value

Dönen Değerler

The equivalent of num in degrees

Örnekler

Örnek 1 rad2deg() example

<?php

echo rad2deg(M_PI_4); // 45

?>

Ayrıca Bakınız

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

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top