/2.0/Tests/Math/sin.php
PHP | 10 lines | 7 code | 2 blank | 1 comment | 0 complexity | 4037a3d8f1d3f17fbec25142a0bbe3e5 MD5 | raw file
Possible License(s): CPL-1.0, GPL-2.0, CC-BY-SA-3.0, MPL-2.0-no-copyleft-exception, Apache-2.0
- [expect php]
- [file]
- <?php
-
- // Precision depends on your precision directive
- echo round(sin(deg2rad(60)), 6); // 0.866025403 ...
- echo "\n";
- echo round(sin(60), 6); // -0.304810621 ...
-
- ?>