# How to clamp a negative float?

**URL:** <https://forums.unrealengine.com/t/how-to-clamp-a-negative-float/433454>\
**Category:** Blueprint\
**Tags:** float, integer, unreal-engine, clamp, UE4, Blueprint, question\
**Created:** [September 9, 2018, 5:24am UTC](https://forums.unrealengine.com/t/how-to-clamp-a-negative-float/433454 "2018-09-09T05:24:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![G1K777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@G1K777](https://forums.unrealengine.com/u/G1K777)\
**Post date:** [September 9, 2018, 5:24am UTC](https://forums.unrealengine.com/t/how-to-clamp-a-negative-float/433454/1 "2018-09-09T05:24:06Z")

</div>

Hello, i want to make this answer here because i couldn’t find anything on google.

![253164-potato.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/1/bc173c6a9580dd1dae6082fe417430a81e531d92.png)

Why is the “min -1” and “max -0.01” ?

Imagine a line of numbers:

-1.0 ------ -0.5 ------ 0.0 ------ 0.5 ------ 1.0

Lower ------------------------------------\> Higher

-1.0 is the lowest(min) and not the highest(max) value it can become.

I was bit confused at first, so i decided to make this Post here.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 9, 2018, 7:38am UTC](https://forums.unrealengine.com/t/how-to-clamp-a-negative-float/433454/2 "2018-09-09T07:38:24Z")

</div>

I do not understand this. When you draw an axis, why would you put negatives on the right hand side? I think that’s the confusing bit.

> Why is the “min -1” and “max -0.01” ?

Because -1 \< -0.01

---

<div class="post-metadata">

**Author:** ![G1K777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@G1K777](https://forums.unrealengine.com/u/G1K777)\
**Post date:** [September 9, 2018, 10:27am UTC](https://forums.unrealengine.com/t/how-to-clamp-a-negative-float/433454/3 "2018-09-09T10:27:35Z")

</div>

Fixed, i guess.
