![](https://feddit.de/pictrs/image/62f0c94a-d8ed-4cb7-8cfd-cb5da3415e99.png)
![](https://lemmy.ml/pictrs/image/c0ed0a36-2496-4b4d-ac77-7d2fd7f2b5b7.png)
That one is not that complicated if you don’t think about the math. It’s basically just if we interpret the float as int and add a magic number we have a good estimation.
From what I remember at least, it’s been a little while since I implemented it.
Wasted performance large scale means wasted resources large scale, like CO2 emissions, energy costs, and hardware that would not be needed without