title: Cannot return a float value of -1.00
body: <p>I am currently doing an assignment for a computer science paper at university. I am in my first year.</p>
  
  <p>in one of the questions, if the gender is incorrect the function is suppose to return a value of -1. But in the testing column, it says the expected value is -1.00. And I cannot seem to be able to return the value of '-1.00', it will always return a value of -1.0 (with one zero). I used the .format to make the value 2sf (so it will appear with two zero's) but when converting it to a float the value always returns "-1.0". </p>
  
  <pre><code>return float('{:.2f}'.format(-1))
  </code></pre>