Difference between revisions of "3228: Day Counter"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(Explanation: Added a bit about programming and title text, I guess dropdown menu is explained in the previous comic, leaving for now)
(Explanation)
Line 11: Line 11:
 
==Explanation==
 
==Explanation==
 
{{incomplete|This page was created -.000000000000000032 days ago. Don't remove this notice too soon.}}
 
{{incomplete|This page was created -.000000000000000032 days ago. Don't remove this notice too soon.}}
{{w|Floating points}} are numbers written in {{w|Scientific Notation}}, rounded to fit. They are often used for very large/small numbers, where writing the full number would get incredibly long. However, the rounding required to make these numbers can result in quite big rounding errors, which can cause a fair amount of trouble.
+
{{w|Floating-point arithmetic|Floating point numbers}} are numbers stored in a computer as {{w|Scientific Notation}}, rounded to fit. They are often used for decimal numbers, where storing the full number with all decimal places would result in using much space. However, the rounding required to use these numbers can result in rounding errors, which can cause a fair amount of trouble, especially when comparing them or printing them to a screen in a human readable format.
  
 
This is shown in the comic, where a counter is shown of days since there was last a floating point error. However, the amount of time has been changed from a floating point & back, creating the ridiculous illusion that -0.00000000000000044 days have passed, which implies a 'negative' number of days, which is impossible{{cn}}. It also, even if it was a positive number, would mean less than a microsecond had passed since the last error, which would be an unfeasably short amount of time. Of course, the joke is that in making the sign showing the amount of time since a floating point error was last made, they are creating a floating point error, meaning the sign is invalid. Also, if they tried to reset the sign, they might make the same error again, repeating the cycle over & over, which would not be ideal.
 
This is shown in the comic, where a counter is shown of days since there was last a floating point error. However, the amount of time has been changed from a floating point & back, creating the ridiculous illusion that -0.00000000000000044 days have passed, which implies a 'negative' number of days, which is impossible{{cn}}. It also, even if it was a positive number, would mean less than a microsecond had passed since the last error, which would be an unfeasably short amount of time. Of course, the joke is that in making the sign showing the amount of time since a floating point error was last made, they are creating a floating point error, meaning the sign is invalid. Also, if they tried to reset the sign, they might make the same error again, repeating the cycle over & over, which would not be ideal.

Revision as of 13:27, 3 April 2026

Day Counter
It has been −2,147,483,648 days since our last integer overflow.
Title text: It has been −2,147,483,648 days since our last integer overflow.

Explanation

Ambox warning blue construction.png This is one of 65 incomplete explanations:
This page was created -.000000000000000032 days ago. Don't remove this notice too soon. If you can fix this issue, edit the page!

Floating point numbers are numbers stored in a computer as Scientific Notation, rounded to fit. They are often used for decimal numbers, where storing the full number with all decimal places would result in using much space. However, the rounding required to use these numbers can result in rounding errors, which can cause a fair amount of trouble, especially when comparing them or printing them to a screen in a human readable format.

This is shown in the comic, where a counter is shown of days since there was last a floating point error. However, the amount of time has been changed from a floating point & back, creating the ridiculous illusion that -0.00000000000000044 days have passed, which implies a 'negative' number of days, which is impossible[citation needed]. It also, even if it was a positive number, would mean less than a microsecond had passed since the last error, which would be an unfeasably short amount of time. Of course, the joke is that in making the sign showing the amount of time since a floating point error was last made, they are creating a floating point error, meaning the sign is invalid. Also, if they tried to reset the sign, they might make the same error again, repeating the cycle over & over, which would not be ideal.

Coincidentally enough, Cueball is also floating - off his seat in this case. The seat itself looks the same as the chair in 2144, possibly meaning making people levitate is one of it's numerous settings.

Floating point errors are particularly common in programming, specially in languages that implicitly convert decimal numbers to binary floating point, so an approximation is already made at conversion leading to unexpected results. The title text cites another common programming problem, integer overflow. When a value gets bigger than the biggest integer that can be represented in a certain format, it "warps around" to the smallest value. In case of 32-bit signed integers this value is -2^-31, that is −2,147,483,648.

The dropdown menu beneath the comic allows the user to select different "modes". These include the typical "Light mode" and "Dark mode", but also includes some atypical modes such as "Dorian Greyscale Mode" which gradually turns the page darker shades of grey to simulate aging as in the 1890 Oscar Wilde story "The Picture of Dorian Gray".

Transcript

[A sign is on a wall, reading: 'It has been -0.00000000000000044 days since our last floating point error', with the number in it's own box. Below, Ponytail (with her hand raised) & White Hat are talking, Cueball is working at a computer on a desk, while somehow levitating off his chair, & Megan is walking away.]


comment.png  Add comment      new topic.png  Create topic (use sparingly)     refresh discuss.png  Refresh 

Discussion

Someone has to be first 2401:D005:D402:7A00:780:9D40:A38A:98A0 13:14, 3 April 2026 (UTC)

In response to the comment added by @GSLikesCats307, "When the comic was first published the number was −0.00000000000000017 days": Perhaps Randall was just trying to make things a bit more realistic. I've shown a realistic example that could generate −0.00000000000000044. My experiments didn't find any examples that could generate −0.00000000000000017. —Scs (talk) 15:15, 3 April 2026 (UTC)

The day counter is now showing −0.00000000000000044 on my Windows 11 system using Chrome. Maybe the result differs based on computer/browser combination? 72.218.191.213 16:16, 3 April 2026 (UTC)

The April Fools dark mode thing was kept! Lets go! King Pando (talk) 16:25, 3 April 2026 (UTC)

This comic was published during NASA's Artemis II moon mission. Could Cueball seeming to be floating above his chair be a reference to null gravity? PDesbeginner (talk) 17:12, 3 April 2026 (UTC)
      comment.png  Add comment