將弧度數轉換為相應的角度數

rad2deg

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

rad2deg 將弧度數轉換為相應的角度數

說明

rad2deg(float $number): float

本函式將 number 從弧度轉換為角度。

參數

number

一個弧度值

返回值

number 相應的角度數

範例

示例 #1 rad2deg() 例子

<?php

echo rad2deg(M_PI_4); // 45

?>

參見

Leave a Reply

Your email address will not be published. Required fields are marked *