note 19002 rejected from function.sqrt by zak
| From: | zak@php.net | Date: | Wed, 13 Feb 2002 12:46:40 +0000 |
| Subject: | note 19002 rejected from function.sqrt by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-26544@lists.php.net to get a copy of this message | ||
The function pow() was modified to raise an error when you try to calculate square root of a
negative number.
It seems that it's not the case for the sqrt function.
That script:
<?php
echo sqrt(-3);
?>
returns
-1.#IND
in version 4.1.1.
That's not so nice ...