# Is there a function to clip an array to a maximum value? e.g. set values in an arr

**URL:** <https://discourse.julialang.org/t/is-there-a-function-to-clip-an-array-to-a-maximum-value-e-g-set-values-in-an-arr/56412>\
**Category:** General Usage\
**Created:** [March 3, 2021, 3:19pm UTC](https://discourse.julialang.org/t/is-there-a-function-to-clip-an-array-to-a-maximum-value-e-g-set-values-in-an-arr/56412 "2021-03-03T15:19:17Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [February 1, 2023, 9:36pm UTC](https://discourse.julialang.org/t/is-there-a-function-to-clip-an-array-to-a-maximum-value-e-g-set-values-in-an-arr/56412/9 "2023-02-01T21:36:10Z")

</div>

3 posts were split to a new topic: [Understanding in-place broadcasting syntax (.=)](https://discourse.julialang.org/t/understanding-in-place-broadcasting-syntax/93888)

---

_[View the full topic](https://discourse.julialang.org/t/is-there-a-function-to-clip-an-array-to-a-maximum-value-e-g-set-values-in-an-arr/56412)._
