I was working on ticket 32559 to add
step in FloatField but how to write validation check for this.
Due to python floating point issues, I am not able to validate whether field value is of given step_size or not
Probably the best approach is to use math.isclose(): math — Mathematical functions — Python 3.9.5 documentation.
It’s normal to keep conversation on the ticket: #32559 (Add attribute 'step' to FloatField.) – Django
Therefore I’m replying there.
Sorry, I forget updating here but I got a reply for this on mailing list itself. Thanks for your answer.