420
submitted 2 months ago by xkcdbot@lemmy.world to c/xkcd@lemmy.world

xkcd #3228: Day Counter

Title text:

It has been −2,147,483,648 days since our last integer overflow.

Transcript:

Transcript will show once it’s been added to explainxkcd.com

Source: https://xkcd.com/3228/

explainxkcd for #3228

you are viewing a single comment's thread
view the rest of the comments
[-] palordrolap@fedia.io 17 points 2 months ago

At a guess, the counter goes up by fractions of a day internally, but it's reset by subtracting the integer part, rounded.

The original version wouldn't have had the rounding but they "fixed" that after the first time they did a reset and it went to 1 not 0.

As to why they wouldn't just set it to zero, well here we have the joke under a microscope and it's struggling to stay alive. Put the scalpel down.

this post was submitted on 03 Apr 2026
420 points (99.5% liked)

xkcd

16581 readers
12 users here now

A community for a webcomic of romance, sarcasm, math, and language.

founded 3 years ago
MODERATORS