Hello All,
I have a FloatField in one of my model. I Add/Edit it using ModelForms. What I need is that, when i edit, the Float value stored in FloatField to be rendered with exactly 2 precision points.
i.e. if my stored value is 1000.0 or 1000.123
, i want the input field of form to show initial value of 1000.00 or 1000.12
.
Any suggestion on approach will be appreciated. Thank you all.