milvus/internal/parser/planparserv2/floating_comparision.go
Jiquan Long 98ceb162aa
Support antlr as plan parser (#16696)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>

Co-authored-by: xaxys <tpnnghd@163.com>

Co-authored-by: xaxys <tpnnghd@163.com>
2022-05-06 17:43:51 +08:00

9 lines
171 B
Go

package planparserv2
const float64EqualityThreshold = 1e-9
func floatingEqual(a, b float64) bool {
// return math.Abs(a-b) <= float64EqualityThreshold
return a == b
}