---
title: 'Remapping a value from one range to another'
url: 'https://www.kcederlund.dev/blog/remapping-a-value-from-one-range-to-another'
markdown: 'https://www.kcederlund.dev/blog/remapping-a-value-from-one-range-to-another.md'
date: '2026-04-25'
description: "You have a number in one range and need it in another. A slider reads 0 to 100, but your audio gain wants -60dB to 0dB. Same value, different scale. That's remapping. Some engines ship it, some don't — either way it's worth understanding the math so you can write it yourself when you need to. The m"
taxonomy:
  tag:
    - csharp
    - cpp
    - python
    - gdscript
    - javascript
    - unity
    - unreal
    - godot
    - gamedev
    - snippet
    - math
  archives_month:
    - apr_2026
  archives_year:
    - '2026'
---

# Remapping a value from one range to another

---

## Navigation

- Parent: [Blog](https://www.kcederlund.dev/blog.md)
- Previous: [Why I built Touchpoint](https://www.kcederlund.dev/blog/why-i-built-touchpoint.md)
