"that also won't handle zeros, nor will it return a sign exactly :)"
Care to explain what you mean that it won't handle zeros? It looks to me like you have never used a sign, sgn or signum function before. It returns 1 for a positive, 0 for zero and -1 for a negative. This behaves exactly like other sign functions do.
In reply to Re^2: Spaceship Zero
by Mr. Muskrat
in thread Spaceship Zero
by Orchew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |