# isapprox(Tuple{T}) not working

**URL:** <https://discourse.julialang.org/t/isapprox-tuple-t-not-working/35117>\
**Category:** General Usage\
**Tags:** question\
**Created:** [February 25, 2020, 3:09pm UTC](https://discourse.julialang.org/t/isapprox-tuple-t-not-working/35117 "2020-02-25T15:09:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [February 25, 2020, 3:09pm UTC](https://discourse.julialang.org/t/isapprox-tuple-t-not-working/35117/1 "2020-02-25T15:09:46Z")

</div>

Wondering while isapprox() works for scalar and arrays but not for tuples:

```julia
[-6.9999999998,-1.000000000002] ≈ [-7,-1] # true
(-6.9999999998,-1.000000000002) ≈ (-7,-1) # MethodError
([-6.9908,-1.00152],21.96624) ≈ ([-7,-1],22) # MethodError

```

Any workaround without looping ?

---

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [February 25, 2020, 3:16pm UTC](https://discourse.julialang.org/t/isapprox-tuple-t-not-working/35117/2 "2020-02-25T15:16:08Z")

</div>

Ok, this is already discussed [here](https://discourse.julialang.org/t/isapprox-for-array-of-tuples/18527) and [here](https://github.com/JuliaLang/julia/issues/18779) ( to sum up, it is preferred to leave explicit collecting if one want as is it not clear with a tuple if one want elementwise approximation, or approximation of the whole tuple)
