FerretDB icon indicating copy to clipboard operation
FerretDB copied to clipboard

Refactor checks for weird `float64` values

Open AlekSi opened this issue 3 years ago • 0 comments

(might be merged into #1151)

We have a code similar to value != math.Trunc(value) || math.IsNaN(value) || math.IsInf(value, 0) in many places. At least in internal/handlers/common it could be refactored to use GetWholeNumberParam.

AlekSi avatar Apr 26 '22 04:04 AlekSi