Add stub for `isZero`.

This commit is contained in:
CismonX 2020-03-21 23:51:13 +08:00
parent 565b533be5
commit f0e4ee6582
1 changed files with 10 additions and 0 deletions

View File

@ -141,6 +141,16 @@ interface Base extends Countable
*/
function isFinite();
/**
* Checks whether all elements of the object are zero (value <= tolerance).
*
* For objects with complex numbers, real and imaginary part are checked separately.
*
* @param number $tol[optional]
* @return bool
*/
function isZero($tol);
/**
* Checks whether at least one of the elements of the object is ±infinity.
*