github.com/blend/go-sdk@v1.20220411.3/mathutil/in_epsilon.go (about) 1 /* 2 3 Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file. 5 6 */ 7 8 package mathutil 9 10 // InEpsilon returns if two values are within the Epsilon of each other absolutely. 11 func InEpsilon(a, b float64) bool { 12 return (a-b) < Epsilon && (b-a) < Epsilon 13 }