Editing 2319: Large Number Formats

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 67: Line 67:
 
In many programming languages, the keyword to request a single-precision floating-point variable is <tt>float</tt>, while the keyword to request double-precision is <tt>double</tt>.  It is an easy mistake to make to forget about the limited precision available with type <tt>float</tt>, especially since its name sounds like what you want for "floating point".  (Had the programmer remembered to use type <tt>double</tt>, the number 25,259,974,097,204 could have been represented exactly (still in hexadecimal), as <tt>0.b7ca5e43c9a000</tt> &times; 2<sup><tt></tt>2d</sup>.)
 
In many programming languages, the keyword to request a single-precision floating-point variable is <tt>float</tt>, while the keyword to request double-precision is <tt>double</tt>.  It is an easy mistake to make to forget about the limited precision available with type <tt>float</tt>, especially since its name sounds like what you want for "floating point".  (Had the programmer remembered to use type <tt>double</tt>, the number 25,259,974,097,204 could have been represented exactly (still in hexadecimal), as <tt>0.b7ca5e43c9a000</tt> &times; 2<sup><tt></tt>2d</sup>.)
 
|-
 
|-
| 10<sup>13</sup>
+
|  
 
| Astronomer
 
| Astronomer
 
| For extremely large distances, astronomers typically only care about orders of magnitude, e.g. whether a number is 10<sup>13</sup>, as opposed to 10<sup>12</sup> or 10<sup>14</sup>. Randall often jokes about the lack of precision needed by astronomers, such as in [[2205: Types of Approximation]] where the astronomer-cosmologist is equally willing to make pi equal to one, or ten. The original number is rounded to the nearest power of ten.
 
| For extremely large distances, astronomers typically only care about orders of magnitude, e.g. whether a number is 10<sup>13</sup>, as opposed to 10<sup>12</sup> or 10<sup>14</sup>. Randall often jokes about the lack of precision needed by astronomers, such as in [[2205: Types of Approximation]] where the astronomer-cosmologist is equally willing to make pi equal to one, or ten. The original number is rounded to the nearest power of ten.
Line 75: Line 75:
 
| The natural numbers can be constructed in a {{w|set theory}} in various ways. In the most common of these, the {{w|Natural_number#Von_Neumann_ordinals|Von Neumann ordinals}}, the natural numbers are defined recursively by letting 0 = ∅ (the {{w|empty set}}), and ''n'' + 1 = ''n'' ∪ {''n''}. So, every natural number ''n'' is the set of all natural numbers less than ''n'', and since 0 is defined as the empty set, all numbers are nested sets of empty sets. Note that writing out a number in this form requires an exponential number of characters - that is, ''n'' + 1 requires over twice the characters as ''n'' does to write out. Thus, this method could not be finished, as it would require more data to be stored than there is matter in the universe to store it.
 
| The natural numbers can be constructed in a {{w|set theory}} in various ways. In the most common of these, the {{w|Natural_number#Von_Neumann_ordinals|Von Neumann ordinals}}, the natural numbers are defined recursively by letting 0 = ∅ (the {{w|empty set}}), and ''n'' + 1 = ''n'' ∪ {''n''}. So, every natural number ''n'' is the set of all natural numbers less than ''n'', and since 0 is defined as the empty set, all numbers are nested sets of empty sets. Note that writing out a number in this form requires an exponential number of characters - that is, ''n'' + 1 requires over twice the characters as ''n'' does to write out. Thus, this method could not be finished, as it would require more data to be stored than there is matter in the universe to store it.
 
|-
 
|-
| 1,262,998,704,860 score and four
+
|
 
| Abraham Lincoln
 
| Abraham Lincoln
 
| In the {{W|Gettysburg Address}}, Lincoln speaks the number "87" as "four score and seven" ("score" meaning "20"). Base-20 or {{w|vigesimal}} numeral systems are or have been used in pre-Columbian-American, African and many other cultures. In French it is used only for higher numbers (e.g. 92 = quatre-vingt-douze). In English it can appear in certain archaic and classic contexts, such as the King James translation of the Bible ("threescore years and ten"  to be the life expectancy of a human according to Psalm 90:10).  In these cases, a number is written in "score" (multiples of 20) plus a remainder. In this case 1,262,998,704,860 * 20 + 4 yields the exact number.
 
| In the {{W|Gettysburg Address}}, Lincoln speaks the number "87" as "four score and seven" ("score" meaning "20"). Base-20 or {{w|vigesimal}} numeral systems are or have been used in pre-Columbian-American, African and many other cultures. In French it is used only for higher numbers (e.g. 92 = quatre-vingt-douze). In English it can appear in certain archaic and classic contexts, such as the King James translation of the Bible ("threescore years and ten"  to be the life expectancy of a human according to Psalm 90:10).  In these cases, a number is written in "score" (multiples of 20) plus a remainder. In this case 1,262,998,704,860 * 20 + 4 yields the exact number.

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)