float = models.DecimalField(max_digits=5,decimal_places=2)
#max_digits is maximum number of digits allowed in the number.
#Note that this number must be greater than or equal to decimal_places.
# Always use DecimalField for money.
#Even simple operations (addition, subtraction) are not immune to float rounding issues:
>>> 10.50 - 0.20
10.300000000000001
>>> Decimal('10.50') - Decimal('0.20')
Decimal('10.30')