# Unique() to a certain tolerance?

**URL:** <https://discourse.julialang.org/t/unique-to-a-certain-tolerance/23007>\
**Category:** General Usage\
**Tags:** faq\
**Created:** [April 10, 2019, 4:34pm UTC](https://discourse.julialang.org/t/unique-to-a-certain-tolerance/23007 "2019-04-10T16:34:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [April 10, 2019, 5:13pm UTC](https://discourse.julialang.org/t/unique-to-a-certain-tolerance/23007/4 "2019-04-10T17:13:45Z")

</div>

Maybe related to:

> [@How to make a Set of real values based on rtol?](https://discourse.julialang.org/t/how-to-make-a-set-of-real-values-based-on-rtol/11769):
>
> Lets say you wanted to make a Set of real numbers: Set( [1.0, 1+eps(), 2] ) Where for all practical purposes, this should reduce to Set([1.0,2.0]) Is there an existing data structure that allows something like: Set(..., rtol=1e-8) to provide this functionality? (as well as maintain all the features of a Set) edit: I guess what I’m asking is: is it possible to change the equality condition for Set checking?

---

_[View the full topic](https://discourse.julialang.org/t/unique-to-a-certain-tolerance/23007)._
