# Input Axis not clamping

**URL:** <https://forums.unrealengine.com/t/input-axis-not-clamping/401373>\
**Category:** Blueprint\
**Tags:** unreal-engine, clamp, editor, UE4, Blueprint, question\
**Created:** [August 9, 2017, 4:23am UTC](https://forums.unrealengine.com/t/input-axis-not-clamping/401373 "2017-08-09T04:23:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alpaca91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alpaca91](https://forums.unrealengine.com/u/Alpaca91)\
**Post date:** [August 9, 2017, 4:23am UTC](https://forums.unrealengine.com/t/input-axis-not-clamping/401373/1 "2017-08-09T04:23:01Z")

</div>

I need to clamp the input axis of the left analog stick for some other functions, but when I do the value doesn’t seem to clamp at all.

 ![203946-screenshot+(9).png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/2/d12ee7a79e20d31fa2c12a5a1c1bccb433890cf7.png)

 ![203944-screenshot+(7).png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/d/61d975435d71021fe2dc2f748b1208146cc9077b.png)

---

<div class="post-metadata">

**Author:** ![vivalabugz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vivalabugz](https://forums.unrealengine.com/u/vivalabugz)\
**Post date:** [August 9, 2017, 4:31am UTC](https://forums.unrealengine.com/t/input-axis-not-clamping/401373/2 "2017-08-09T04:31:45Z")

</div>

You are clamping. " -0.19" is in between -1 and 1. The clamp would stop anything below -1 like “-1.1” and anything greater than 1.

Also, unless you changed the default value for MoveRight or set it up yourself the value is already clamped to -1 and 1

---

<div class="post-metadata">

**Author:** ![Alpaca91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alpaca91](https://forums.unrealengine.com/u/Alpaca91)\
**Post date:** [August 9, 2017, 4:45am UTC](https://forums.unrealengine.com/t/input-axis-not-clamping/401373/3 "2017-08-09T04:45:05Z")

</div>

oh i miss understood clamp function then, is there a function for snapping a value between a min and max?

---

<div class="post-metadata">

**Author:** ![vivalabugz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vivalabugz](https://forums.unrealengine.com/u/vivalabugz)\
**Post date:** [August 9, 2017, 5:08am UTC](https://forums.unrealengine.com/t/input-axis-not-clamping/401373/4 "2017-08-09T05:08:24Z")

</div>

I’m not sure I understand. Do you not want it to have decimals? As in do you only want it to equal -1 or 1?
