3 ms·
While we're sharing BASIC stories, middle school me was like "wait, hmm, I can take a 'long' number, take the cosine of it, and get a 'shorter' number. COMPRESS
by jimktrains2 10y ago
While we're sharing BASIC stories, middle school me was like "wait, hmm, I can take a 'long' number, take the cosine of it, and get a 'shorter' number. COMPRESSION!" It was then that i learned about how a computer stores floats, and essentially a bit about entropy. I then started to really understand floats when I tried to use cosine as an encryption function and then all the lost precision became obvious.