Sign
Sign[x] gives -1, 0, or 1 depending on whether x is negative, zero, or positive.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.
Sign[x] gives -1, 0, or 1 depending on whether x is negative, zero, or positive.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.