rad2deg

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

rad2deg Converts the radian number to the equivalent number in degrees

Description

rad2deg(float $num): float

This function converts num from radian to degrees.

Parameters

num

A radian value

Return Values

The equivalent of num 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

add a note

User Contributed Notes

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant