#249·lab

Did you know your value of Pi is wrong?

Author: Draco18sCreated May 19, 2024Updated Jun 28, 2024

https://github.com/google-deepmind/lab/blob/b1db91af5b4d2f3a24466f4632a3e5e1b0829cca/q3map2/q3map2/light.c#L692

It should be 3.141592654 (with that one-over-two-pi should be 0.159154943)

This value of pi originated in the original Doom from 1993 and has been copy-pasted into thousands of projects from one to another ever since.

https://youtu.be/_ZSFRWJCUY4?t=897