Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

float number field django models

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.
Source by riptutorial.com #
 
PREVIOUS NEXT
Tagged: #float #number #field #django #models
ADD COMMENT
Topic
Name
2+5 =