# Less than approx equals? \<≈

**URL:** <https://discourse.julialang.org/t/less-than-approx-equals/45436>\
**Category:** New to Julia\
**Created:** [August 23, 2020, 11:41pm UTC](https://discourse.julialang.org/t/less-than-approx-equals/45436 "2020-08-23T23:41:20Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![anon92994695](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Post date:** [August 24, 2020, 12:15am UTC](https://discourse.julialang.org/t/less-than-approx-equals/45436/3 "2020-08-24T00:15:59Z")

</div>

Sure so I recently was doing point of intersection of 2 line segments.

![unit_test](https://global.discourse-cdn.com/julialang/original/3X/8/a/8a04bd5bee9150aaa27d3d3ebf2aa124ba17429d.gif)

in this case, we have a line that has the same Y value at both endpoints. So one might want to ensure that a given point of intersection is:  
A.y \<= PoI.y \<= B.y

So say A.y = 1.5000000000001 and B.y = 1.4999999999999999 and PoI.y = 1.5  
It will fail the check!  
but, A.y \<≈ PoI.y \<≈ B.y  
would work just fine.  
Does that make sense? Sorry if this is still unclear.

---

_[View the full topic](https://discourse.julialang.org/t/less-than-approx-equals/45436)._
