📜  浮点数字段 django 模型 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:57.027000             🧑  作者: Mango

代码示例1
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.