sqrt_basic.phpt 256 B

123456789101112131415161718
  1. --TEST--
  2. Test return type and value for expected input sqrt()
  3. --INI--
  4. precision = 14
  5. --FILE--
  6. <?php
  7. /*
  8. * proto float sqrt(float number)
  9. * Function is implemented in ext/standard/math.c
  10. */
  11. $arg_0 = 9.0;
  12. var_dump(sqrt($arg_0));
  13. ?>
  14. --EXPECT--
  15. float(3)