title: Float values in an API
body: <p>I created a Flask API and I need a float value as an input. I am using postman to test that API but when I input 9.99, it doesn't see it as a float. How can I directly input a float into the request. For anyone wondering, I am going to work with a price of an item, and that needs to have a float value.</p>
  <p>I am checking if the value is a float in the python code itself to make sure there is a valid input before passing it on to a database. Is there maybe another way to tackle this problem that I am missing here?</p>
  <p>This is the code I am using for checking the type of the input:</p>
  <pre><code>if len(request.args[&quot;price&quot;]) &gt; 0:
          if type(request.args) == float: #The type of the argument should be float, so if future me is reading this, this is probably the cause of your error.
              productPrice = request.args[&quot;price&quot;]
          else:
              return &quot;&lt;p&gt;The second argument provided (product price) is not of the type 'Float'. Please provide a valid argument&lt;/p&gt;&quot;
      else:
          return &quot;&lt;p&gt;Please provide a second argument (product price)&lt;/p&gt;&quot;
  </code></pre>