in reply to Re^3: Spaceship Zero
in thread Spaceship Zero
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Spaceship Zero
by ikegami (Patriarch) on Nov 10, 2008 at 16:21 UTC | |
by tye (Sage) on Nov 10, 2008 at 17:16 UTC | |
by ikegami (Patriarch) on Nov 10, 2008 at 17:33 UTC |