PageRenderTime 24ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. [expect php]
  2. [file]
  3. <?php
  4. // Precision depends on your precision directive
  5. echo round(sin(deg2rad(60)), 6); // 0.866025403 ...
  6. echo "\n";
  7. echo round(sin(60), 6); // -0.304810621 ...
  8. ?>