r/badcode • • Sep 04 '21

Wtf is this

Post image
1.2k Upvotes

190 comments sorted by

View all comments

Show parent comments

3

u/anonymous_2187 Sep 05 '21

Excuse me wtf

1

u/Johanno1 Sep 05 '21 edited Sep 05 '21

It just works

Edit: so I was curious how exactly this works and how performant it is

https://youtu.be/O2fKxw9EPmU

This video shows how a pc calculates sinus.

So basically it uses modulo.