title: How can I round values to the next .5 for every number where decimal part is greater than 0 using c#:
body: <p>How can I round up values like this using c#:</p>
  
  <pre><code>1.1 =&gt; 1.5
  
  2.0 =&gt; 2.0
  
  2.1 =&gt; 2.5
  
  1.9 =&gt; 1.5
  
  7.7 =&gt; 7.5
  </code></pre>
  
  <p>I always want value to be in <code>0.5</code> or <code>0.0</code></p>