# 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:** 3

<div class="post-metadata">

### Author: ![improbable22](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/improbable22/32/5464_2.png) [@improbable22](https://discourse.julialang.org/u/improbable22)
#### Post date: [April 10, 2019, 5:07pm UTC](https://discourse.julialang.org/t/unique-to-a-certain-tolerance/23007/3 "2019-04-10T17:07:22Z")

</div>

You can pass a function to unique:

```julia
unique(x -> round(x, digits=0), randn(10))

```

Perhaps this will be `unique(round(_, digits=0), randn(10))` soon…

---

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