title: Is there a C rounding function like MATLAB's round function?
body: <p>I need a C rounding function which rounds numbers like MATLAB's round function. Is there one? If you don't know how MATLAB's round function works see this link:</p>
  
  <p><a href="https://stackoverflow.com/questions/3597197/matlab-round-function-how-does-it-round-5-up-or-down">MATLAB round function</a></p>
  
  <p>I was thinking I might just write my own simple round function to match MATLAB's functionality.</p>
  
  <p>Thanks,</p>
  
  <p>DemiSheep</p>