User:Greg L/Delimitnum sandbox

All: Please feel free to edit and supplement this page as you see fit to facilitate your efforts with the   template, the in-progress pair (Template:Delimitnum/real and Template:Delimitnum/group), or the  magic word.  Greg L (my talk) 23:46, 17 March 2008 (UTC)

Delimitnum sandbox
This section can be used as a proof-checking sandbox for a template/parser function. Various expressions and progressions of the template’s use are shown below, including special paragraphs to examine for unclosed span tags.


 * Hand Coded:
 * In the following section, wherever numeric equalities are shown in ‘concise form’ — such as 1.854 87(14) × 1043 Hz, —the two digits between the parentheses denotes the uncertainty at 1σ standard deviation (68% confidence level) in the two least significant digits of the significand.


 * Template using (comma outside):
 * In the following section, wherever numeric equalities are shown in ‘concise form’ — such as, —the two digits between the parentheses denotes the uncertainty at 1σ standard deviation (68% confidence level) in the two least significant digits of the significand.

Many times, paragraphs will be indented at their start if the preceding paragraph contains an unclosed span tag. Unclosed spans and weird stuff left over from templates might even make separate paragraphs glue together and other odd behavior. So if I use a bunch of template-generated numbers like this: and these:  and  and  and  and  and  and finally, this one:, does the following paragraph line up?

Maybe this paragraph (which also begins with an nice, upright M) lines up with the above one. This paragraph was not set off from the previous one using either or. Here’s some greeked text to fill out the paragraph: Lorem ipsum dolor sit amet, maecenas eligendi tincidunt aenean, sit et hac hendrerit massa, morbi maecenas nec vel auctor. Aliquam sit, tincidunt justo arcu neque eu mi fames.

Maybe a short paragraph containing this:

Maybe a short paragraph containing this:

Maybe a short paragraph containing this:

Maybe a short paragraph containing this:

Maybe a short paragraph containing this:

Maybe a short paragraph containing no value. Do they all left-justify?

As of this writing, everything lines up perfectly. Greg L (my talk) 23:34, 7 March 2008 (UTC)

Copied below, is some additional example text verbatim from Kilogram. This is to double check whether an unclosed span tag is propogating forward and causing later paragraphs to have indented beginnings:

Template using : Similarly, the avoirdupois pound, used in both the Imperial system and U.S. customary units, is a unit of mass and its related unit of force is the pound-force. The avoirdupois pound is defined as exactly, making one kilogram approximately equal to 2.205 avoirdupois pounds.

This new definition of the kilogram proposes to fix the Avogadro constant at precisely and the kilogram would be defined as “the mass equal to that of 83⅓ ×  atoms of carbon-12.”

Techniques to enrich the silicon until it is nearly pure silicon-28, which has an atomic mass of. With this approach, the Avogadro constant would not only be fixed, but so too would the atomic mass of silicon-28. As such, the definition of the kilogram would be decoupled from carbon-12 and the kilogram would instead be defined as 1000/ × atoms of silicon-28 (≅ fixed moles of silicon-28 atoms).

A variation on a carbon-12-based definition proposes to define the Avogadro constant as being precisely 84,446,8863 (≅) atoms.

Ultimately, the watt balance would define the kilogram in terms of the Planck constant, which is a measure that relates the energy of photons to their frequency. The Planck constant would be fixed, where h = (from the 2006 CODATA value of ) and the kilogram would be defined as “the mass of a body at rest whose equivalent  energy equals the energy of photons whose frequencies sum to .”

Hand Coded: Similarly, the avoirdupois pound, used in both the Imperial system and U.S. customary units, is a unit of mass and its related unit of force is the pound-force. The avoirdupois pound is defined as exactly 0.453 592 37 kg, making one kilogram approximately equal to 2.205 avoirdupois pounds.

This new definition of the kilogram proposes to fix the Avogadro constant at precisely 6.022 141 79 × 1023 and the kilogram would be defined as “the mass equal to that of 83⅓ × 6.022 141 79  × 1023 atoms of carbon-12.”

Techniques to enrich the silicon until it is nearly pure silicon-28, which has an atomic mass of 27.976 9271 (7) g/mol. With this approach, the Avogadro constant would not only be fixed, but so too would the atomic mass of silicon-28. As such, the definition of the kilogram would be decoupled from carbon-12 and the kilogram would instead be defined as 1000/27.976 9271 × 6.022 141 79 × 1023 atoms of silicon-28 (≅35.743 7397 fixed moles of silicon-28 atoms).

A variation on a carbon-12-based definition proposes to define the Avogadro constant as being precisely 84,446,8863 (≅6.022 140 98 × 1023) atoms.

Ultimately, the watt balance would define the kilogram in terms of the Planck constant, which is a measure that relates the energy of photons to their frequency. The Planck constant would be fixed, where h = 6.626 068 96 × 10–34 J·s (from the 2006 CODATA value of 6.626 068 96(33)  × 10–34 J·s) and the kilogram would be defined as “the mass of a body at rest whose equivalent  energy equals the energy of photons whose frequencies sum to 1.356 392 733  × 1050 Hz.”

Progressions of features and digits:
→, Hand coded → 6.022 141 79(30) × 1023 kg  → , Hand coded → 1,579,800.298 728 →, Hand coded → 1.356 392 733 × 1050 Hz  → , Hand coded → 0.453 592 37  kg  → , Hand coded → 6.022 461 →, Hand coded → 6.022 4613 →, Hand coded → 6.022 461 34 →, Hand coded → 6.022 461 342 →, Hand coded → 1.1200(25) Experiment with narrow spans alongside × sign

With ×

6.022 141 791(30) × 1023  kg 6.022 141 791  × 1023  kg 6.022 141 792  × 1023  kg 6.022 141 793  × 1023  kg 6.022 141 794  × 1023  kg 6.022 141 795  × 1023  kg 6.022 141 796  × 1023  kg 6.022 141 797  × 1023  kg 6.022 141 798  × 1023  kg 6.022 141 799  × 1023  kg

Conventional way: → 6.022 141 791 × 1023 kg → →  →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →

→, Hand coded → 10,000,000 →, Hand coded → 1,111,111 →, Hand coded → 2,222,222 →, Hand coded → 3,333,333 →, Hand coded → 4,444,444 →, Hand coded → 5,555,555 →, Hand coded → 6,666,666 →, Hand coded → 7,777,777 →, Hand coded → 8,888,888 →, Hand coded → 9,999,999

→, Hand coded → 120.120 340 560 780 →, Hand coded → 1.110 110 →, Hand coded → 1.111 111 →, Hand coded → 2.222 222 →, Hand coded → 3.333 333 →, Hand coded → 4.444 444 →, Hand coded → 5.555 555 →, Hand coded → 6.666 666 →, Hand coded → 7.777 777 →, Hand coded → 8.888 888 →, Hand coded → 9.999 999 →, Hand coded → 9.999 999 →  (I note that no one would use this template to delimit a number that doesn’t need delimiting) →  →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →

TWO-DIGIT GROUPS FOLLOWING ALL TEN POSSIBLE DIGITS (10 × 100)
→  →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →

THREE-DIGIT GROUPS (1 × 1000)
= →  →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →

FOUR-DIGIT GROUPS (1 × 1000)
→  →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →   →

Known bugs

 * I created an Excel spreadsheet to help me identify breaks in the progression. Here is a more concise list:                                                                         * For convenience, I’ve here provided a triple-view of some of the above. They parse as follows:  → live template return  /  ( at time of this posting )   →    /  ( 0.125 402 )  ✓ The following are all supposed to end with three-digit groups   →    /  ( 0.125 402 )   →    /  ( 0.125 403 )   →    /  ( 0.125 404 )   →    /  ( 0.125 405 )   →    /  ( 0.125 407 )  ✓   →    /  ( 0.125 407 )   →    /  ( 0.125 43 )   →    /  ( 0.125 431 )   →    /  ( 0.125 433 )  ✓   →    /  ( 0.125 433 )   →    /  ( 0.125 434 )   →    /  ( 0.125 436 )  ✓   →    /  ( 0.123 543 599 ) This one is supposed to end with the four-digit group “5436”  →   /  ( 0.298 728 209 )  This one is supposed to end with the two-digit group “21”