title: how to calculate the float reminder for the two float values
body: <p>I have two float values, 'a' and 'b' .</p>
  
  <p>I need to calculate the reminder of these two float values, and it must be a float value.</p>
  
  <p>Let </p>
  
  <pre><code>float a = 1.1;
  float b = 0.5;
  </code></pre>
  
  <p>So the remainder 'r' should be accurate value</p>
  
  <p>i.e.  r = a % b</p>
  
  <p>r = 1.1 % 0.5</p>
  
  <pre><code>  0.5) 1.1 (2
         1.0
       ______
  
         0.1
  
    r = 0.1
  </code></pre>
  
  <p><strong>But it causes to an error invalid operand for float values.</strong></p>
  
  <p>How to do it?</p>