Fork me on GitHub
#off-topic
<
2019-12-05
>
p-himik22:12:27

Someone has recently ask about converting a number to a string with the correct size suffix (KB, MB etc). Not sure in what channel and can't find it again because we still use Slack, so posting it here. Just stumbled upon this article that explains how most of the code that does it is wrong: https://programming.guide/worlds-most-copied-so-snippet.html It's pretty neat.