# Inverse math function

**URL:** <https://forum.kirupa.com/t/inverse-math-function/326194>\
**Category:** Uncategorized\
**Created:** [November 28, 2011, 10:38pm UTC](https://forum.kirupa.com/t/inverse-math-function/326194 "2011-11-28T22:38:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bonassus](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@bonassus](https://forum.kirupa.com/u/bonassus)\
**Post date:** [November 28, 2011, 10:38pm UTC](https://forum.kirupa.com/t/inverse-math-function/326194/1 "2011-11-28T22:38:01Z")

</div>

Sorry if the title of this post is misleading.  
I have a slider that outputs a number from 0 to 10 which is backwards from what i need.  
so when its 0 i need it to be 10. when its 1 i need it to be 9. when its 8,2. ect  
is there a function in as3 for converting these numbers?

Thanks!
