A webcomic of romance, sarcasm, math, and language.
Special 10th anniversary edition of WHAT IF?—revised and annotated with brand-new illustrations and answers to important questions you never thought to ask—coming from November 2024. Preorder here!
Person: Hey, check it out: e^pi-pi is 19.999099979. That's weird.
Hat Guy: Yeah. That's how I got kicked out of the ACM in college.
Person: . . . what?
Hat Guy: During a competition, I told the programmers on our team that e^pi-pi was a standard test of floating-point handlers--it would come out to 20 unless they had rounding errors.
Person: That's awful.
Hat Guy: Yeah, they dug through half their algorithms looking for the bug before they figured it out.
{{alt text: Also, I hear the 4th root of (9^2 + 19^2
22) is pi.
xkcd.com is best viewed with Netscape Navigator 4.0 or below on a Pentium 3±1 emulated in Javascript on an Apple IIGS at a screen resolution of 1024x1. Please enable your ad blockers, disable high-heat drying, and remove your device from Airplane Mode and set it to Boat Mode. For security reasons, please leave caps lock on while browsing.