Closed ahaooahaz closed 11 months ago
https://github.com/go-playground/validator/pull/1145
Floating-point numbers lost precision during the conversion process, which caused the equality of lt
and gt
to fail to take effect. I modified the code to complete the precision of four decimal places after floating-point numbers to support floating-point numbers
Package version eg. v9, v10: v10
Issue, Question or Enhancement: Issue
I found there is an bad case with
lt=float
Code sample, to showcase or reproduce: