---
title: "Discussion on \"Mapping Linear Scales From One to Another\" | Hashnode"
description: "Discussion on \"Mapping Linear Scales From One to Another\". In this post I explain mapping number scales and how to write simple function to convert from one scale to another. \nEvery time I find myself needing to do this, I have to spend time reasoning my way through it. It's been a number of years since my l..."
url: "https://hashnode.com/posts/mapping-linear-scales-from-one-to-another/5f1df4f6f4016901885ccc9b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mapping Linear Scales From One to Another](https://hashnode.blainegarrett.com/mapping-linear-scales-from-one-to-another?utm_source=hashnode&utm_medium=feed)

In this post I explain mapping number scales and how to write simple function to convert from one scale to another. Every time I find myself needing to do this, I have to spend time reasoning my way through it. It's been a number of years since my l...

Jul 26, 2020 · 5 min read · hashnode.blainegarrett.com  
Read the article

-   [#math](https://hashnode.com/tag/math)

## Written by

[Blaine Garrett](https://hashnode.com/@blainegarrrett)

@blainegarrrett · Minneapolis, Minnesota, USA

  
[View profile](https://hashnode.com/@blainegarrrett)

Software Engineer and Artist

I&#39;ll find something good to put here.

## Responses 1

Markdown supported · ⌘↵ to post

[Rich Klein](https://hashnode.com/@richwklein)

[Jul 27, 2020](https://hashnode.com/posts/mapping-linear-scales-from-one-to-another/5f1df4f6f4016901885ccc9b/comment/5f1f12600271221745d6675c)

This feels like it would be a nice package. Yesterday, I was having to work out given a max width and a 16:9 ratio what should the max height be. I went out looking for a tool though instead of trying to work the math out myself :)
