# How to do an operation on a variable and assign it that new value for easing calculations?

**URL:** <https://discuss.kotlinlang.org/t/how-to-do-an-operation-on-a-variable-and-assign-it-that-new-value-for-easing-calculations/19621>\
**Category:** Support\
**Created:** [October 23, 2020, 1:00pm UTC](https://discuss.kotlinlang.org/t/how-to-do-an-operation-on-a-variable-and-assign-it-that-new-value-for-easing-calculations/19621 "2020-10-23T13:00:57Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![bjonnh](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/bjonnh/32/8106_2.png) [@bjonnh](https://discuss.kotlinlang.org/u/bjonnh)\
**Post date:** [October 23, 2020, 2:55pm UTC](https://discuss.kotlinlang.org/t/how-to-do-an-operation-on-a-variable-and-assign-it-that-new-value-for-easing-calculations/19621/6 "2020-10-23T14:55:38Z")

</div>

Even better provide us with code we can run here:

> [@How to Embed runnable code in a post?](https://discuss.kotlinlang.org/t/how-to-embed-runnable-code-in-a-post/16650):
>
> How can I include runnable code samples into my post?

---

_[View the full topic](https://discuss.kotlinlang.org/t/how-to-do-an-operation-on-a-variable-and-assign-it-that-new-value-for-easing-calculations/19621)._
