add return value which might be 0 (#20657)

if the input in abs is 0, then the return can't always be a positive value. 0 is not a positive value
This commit is contained in:
Shane
2018-10-31 21:52:54 -04:00
committed by Tom
parent d6bbd72195
commit 522fce544e

View File

@ -9,7 +9,7 @@ It takes one argument `x` - an integer, or decimal, or a complex number.
## Return Value
The return value would be a positive number. Even if complex number is passed, it would return its magnitude, computed as per complex number algebra.
The return value would be a positive number or zero. Even if complex number is passed, it would return its magnitude, computed as per complex number algebra.
## Code Sample
```python