Less than approx equals? <≈

I wouldn’t do that. Keep it (a <= b) || (a ≈ b) as there’s no downsides to it when the values are the same. Changing to < only saves one byte in the source code, but not in the assembly, and will be slower when values are equal, then you need to call to long function (that you will not see in the assembly as not inlined):

julia> @code_native isapprox(1.0, 1.0)
3 Likes