# Is there a Math node that returns a number between a new min and a new max?

**URL:** <https://forums.unrealengine.com/t/is-there-a-math-node-that-returns-a-number-between-a-new-min-and-a-new-max/718607>\
**Category:** Blueprint\
**Tags:** math-expression, unreal-engine, Blueprint, question\
**Created:** [November 30, 2022, 1:46pm UTC](https://forums.unrealengine.com/t/is-there-a-math-node-that-returns-a-number-between-a-new-min-and-a-new-max/718607 "2022-11-30T13:46:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmtzcain](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dmtzcain](https://forums.unrealengine.com/u/dmtzcain)\
**Post date:** [November 30, 2022, 1:46pm UTC](https://forums.unrealengine.com/t/is-there-a-math-node-that-returns-a-number-between-a-new-min-and-a-new-max/718607/1 "2022-11-30T13:46:25Z")

</div>

In blueprints the input is a 7.5 in a range between 0 and 10

I want to return a number between a new-minimal and new-max value that is relative to num in the range between old-minimal and old-max values.

In this case I want the new-minimal and new-max values to be 7 to 11. Then the return would be 10.

Is there a node for this?  
If not, how would a function for this look like?

Thanks!  
D

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 30, 2022, 2:02pm UTC](https://forums.unrealengine.com/t/is-there-a-math-node-that-returns-a-number-between-a-new-min-and-a-new-max/718607/2 "2022-11-30T14:02:02Z")

</div>

There is no node for this.

But also, it makes no sense.

Why is the new range 7-11 when the number was 7.5?

---

<div class="post-metadata">

**Author:** ![dmtzcain](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dmtzcain](https://forums.unrealengine.com/u/dmtzcain)\
**Post date:** [November 30, 2022, 2:12pm UTC](https://forums.unrealengine.com/t/is-there-a-math-node-that-returns-a-number-between-a-new-min-and-a-new-max/718607/3 "2022-11-30T14:12:59Z")

</div>

I’m looking for a proportional tool where I can input new ranges.

The new ranges are also inputs. the return is the number proportional to the new range.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 30, 2022, 2:14pm UTC](https://forums.unrealengine.com/t/is-there-a-math-node-that-returns-a-number-between-a-new-min-and-a-new-max/718607/4 "2022-11-30T14:14:10Z")

</div>

You can map one range to another range?

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/9/fb9b0cb0380b982ec960fbdf8c9c28699fa4e464.png)

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [November 30, 2022, 2:19pm UTC](https://forums.unrealengine.com/t/is-there-a-math-node-that-returns-a-number-between-a-new-min-and-a-new-max/718607/5 "2022-11-30T14:19:14Z")

</div>

you can make a rule of three too… I don’t know if there is a node for rules of three

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [November 30, 2022, 2:24pm UTC](https://forums.unrealengine.com/t/is-there-a-math-node-that-returns-a-number-between-a-new-min-and-a-new-max/718607/6 "2022-11-30T14:24:12Z")

</div>

or maybe you want a random number

![11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/6/9e6f68425936ca5ef266ff2a37ec39b0a840a3ea.png)

---

<div class="post-metadata">

**Author:** ![dmtzcain](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dmtzcain](https://forums.unrealengine.com/u/dmtzcain)\
**Post date:** [November 30, 2022, 2:29pm UTC](https://forums.unrealengine.com/t/is-there-a-math-node-that-returns-a-number-between-a-new-min-and-a-new-max/718607/7 "2022-11-30T14:29:52Z")

</div>

Your hero badge is well earned. Thank you ClockworkOcean, I think this is exactly the node I was looking for.
