# Integer subtraction error

**URL:** <https://discussions.unity.com/t/integer-subtraction-error/836859>\
**Category:** C# & .NET\
**Tags:** Scripting, Burst, Performance, SRP, Mono\
**Created:** [April 14, 2021, 12:48pm UTC](https://discussions.unity.com/t/integer-subtraction-error/836859 "2021-04-14T12:48:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Magnesium](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Magnesium](https://discussions.unity.com/u/Magnesium)\
**Post date:** [April 14, 2021, 1:13pm UTC](https://discussions.unity.com/t/integer-subtraction-error/836859/2 "2021-04-14T13:13:32Z")

</div>

Here to learn about code formatting: [Using code tags properly](https://discussions.unity.com/t/481379)

I think you’re mislead about what Time.deltaTime is used for. It returns the number of miliseconds since the last frame. So if a tenth of a second has passed, you’re actually substracting your amounts times hundred.

---

_[View the full topic](https://discussions.unity.com/t/integer-subtraction-error/836859)._
