Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^4: Spaceship Zeroby pKai (Priest) |
on Nov 10, 2008 at 11:44 UTC ( [id://722629]=note: print w/replies, xml ) | Need Help?? |
The sign function (for real numbers in mathematics) is defined in relation to numerical comparison to zero.
Any other meaning of sign refering to visual representations has little practical value, IMHO: should sgn("-(-1)") be -1 ? So "returning the sign" as the "documented behaviour" for me matches exactly the behaviour of the spaceship zero
In Section
Obfuscated Code
|
|