title: Compare two numbers and return -1, 0 or 1
body: <p>Is there a simple math function available that compares numbers x and y and returns -1 when x is less than y, 1 when x is more than y and 0 when they're equal?</p>
  
  <p>If not, would there be a elegant solution (without any <code>if</code>'s) to convert the output of <code>Math.Max(x, y)</code> to these returns? I was thinking of dividing the numbers by themselves, e.g. 123/123 = 1 but that will introduce the problem of dividing by 0.</p>