# Scaling node? (scale != range)

**URL:** <https://discourse.nodered.org/t/scaling-node-scale-range/54532>\
**Category:** General\
**Created:** [30 November 2021 20:31 UTC](https://discourse.nodered.org/t/scaling-node-scale-range/54532 "2021-11-30T20:31:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hobbes1069](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hobbes1069/32/39892_2.png) [@hobbes1069](https://discourse.nodered.org/u/hobbes1069)\
**Post date:** [30 November 2021 20:31 UTC](https://discourse.nodered.org/t/scaling-node-scale-range/54532/1 "2021-11-30T20:31:26Z")

</div>

I'm sure someone has created one, I've already seen it done as a subflow, but I was surprised to not find a single search return for "scaling" in the palatte manager.

It wouldn't need to be installed by default or anything, but having a few different types of scaling options including offset (bias) could be handy for various analog sensors and such.

Did I miss something obvious?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [30 November 2021 20:34 UTC](https://discourse.nodered.org/t/scaling-node-scale-range/54532/2 "2021-11-30T20:34:02Z")

</div>

You say in the subject "scale != range", but don't say in your post why the Range node isn't what you're looking for. Given the Range node offers a number of options for scaling a value, what functionality are you looking for?

---

<div class="post-metadata">

**Author:** ![hobbes1069](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hobbes1069/32/39892_2.png) [@hobbes1069](https://discourse.nodered.org/u/hobbes1069)\
**Post date:** [30 November 2021 20:52 UTC](https://discourse.nodered.org/t/scaling-node-scale-range/54532/3 "2021-11-30T20:52:29Z")

</div>

Ok, I had to look again. I guess I was looking for a `y=mx+b` (slope and intercept) type approach but using the ranges for each works the same, you just have to do the math.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [30 November 2021 22:30 UTC](https://discourse.nodered.org/t/scaling-node-scale-range/54532/4 "2021-11-30T22:30:21Z")

</div>

Yes. y=mx + b is just a straight line. The range node just defines two points on a line so they are essentially the same.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 January 2022 22:31 UTC](https://discourse.nodered.org/t/scaling-node-scale-range/54532/5 "2022-01-29T22:31:14Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
