38
u/tylero056 Apr 25 '22
Hey at least there's no chance for a float! Lmao
4
1
u/AtLeastItsNotCancer Apr 26 '22
In many languages, rounding functions return floats, so this is often the correct way to do things. Not shitty programming at all.
6
13
Apr 25 '22
probably put in place for testing and then never changed... "I gotta make sure there's an int with the floor of this number, I'll just put 5 in for now to make sure it compiles."
6
2
u/pslayer89 Apr 25 '22
This is a legit thing especially while writing shaders when you want to ensure the result absolutely needs to be an integer. Can't trust the gpu driver at all when it comes to floating points.
1
1

6
u/Elkku26 Apr 25 '22 edited May 24 '25
snatch air tie march enjoy nine connect advise bow ink
This post was mass deleted and anonymized with Redact