title: Is there a standard Haskell function that does numerical clipping?
body: <p>I have the following code:</p>
  
  <pre><code>clip n = if n &lt; 0 then 0 else n
  </code></pre>
  
  <p>It's in the same "category" as <code>abs</code>, <code>ceiling</code>, <code>floor</code>. I don't suppose there is a standard function that does this?</p>