title: Getting Float Value Between 0 and 1
body: <p>I am struggling to get a value between 0 and 1 based upon a percentage i.e 50% would show 0.5. The problem is that I am using the following and it always seems to return 0 for both values. </p>
  
  <p>Even with the xPosition and yPosition set as 50% I still get 0;</p>
  
  <pre><code>float x_point = (1 / 100) * xPosition;
  float y_point = (1 / 100) * yPosition;
  </code></pre>
  
  <p>Any Ideas?</p>
  
  <p>Thanks</p>