I have a html form which I am using a threshold for a python function. I managed to get the data as expected, but when I try to use the input for number it returns a string instead a float/number. I have been researching when I could use JS to do the conversion, still nothing really concrete found.
<form method="Post", id="myform">
<input type="number" id="threshold" name="threshold" min=".1" max="100">
<input type="submit" value="Submit">
</form>
app.route("/dp", methods=['GET', 'POST'])
def report():
v = request.form.get("threshold")
if request.method=='POST':
//code