I have a list of numbers that may be positive/negative/zero, and I want to compare them to exactly -1, 0, 1 without if-then-else statements. Is that possible by setting non-zero numbers to 1, but leaving it's original sign either negative/positive?
EG. Setting -0.6 to -1, and setting 0.8 to 1, and leaving 0 as 0.