I am sending an js object to Django backend:
{
name: "somename",
mynumber:Number('.1')
}
In Django backend i have an array:
arr = [Decimal(".1"),Decimal("1"),Decimal('2'),.....]
When i get an integer type number from mynumber front end, python recognizes the number. But when i send an float type number such as Number('.1') or Number('.2'), this number i cannot compare with python Decimal('.1') or Decimal('.2').
How can i send the front end number so that i can compare the number with Decimal('.1') or Decimal('.2')?