title: Find sign of an integer in OCaml
body: <p>Can we find  the sign of an inter in OCaml without using binary operations ? I mean It's easy to get the sign by comparing with 0. Are there any method other than that using match with command ? I tried the following</p>
  
  <pre><code>let sign n =
      let k = abs(n) in
      match k with
      | 0 -&gt; 0
      | n -&gt; 1
      | _ -&gt; (-1);;
  </code></pre>
  
  <p>But it doesn't works for negative ones as it shows that last comparison is unused. :/</p>