Advertisement
Data Processing

"Grade #0000, Grade #000, Grade #00, Grade #0" — and the Spreadsheet That Read Them All as Zero — The Counted Zeroes

The trade writes its finest steel wool grades as a count, not a number: "#0000, #000, #00, #0" — four grades, distinguished by nothing but how many ze...

The trade writes its finest steel wool grades as a count, not a number: "#0000, #000, #00, #0" — four grades, distinguished by nothing but how many zeroes follow the hash. A hardware chain's inventory spreadsheet, importing the grade column as numbers, read all four as 0, and for one restocking cycle the chain's system held a single finest grade where its shelves held four. We built a 300-row register of the eight standard steel wool grades, from #0000 (super fine) to #4 (extra coarse), spelled each five ways — the printed label, the slash notation (4/0, 3/0, 2/0, 1/0), an integer parse of the label, the maker's coarseness band name, and the zero count — and read it back in stages. Four spellings never lose a row. The integer parse loses every zero grade except the first, filing #000, #00 and #0 as #0000: it recovered 41 of its 60 rows, and the 19 it lost are the entire middle of the fine end (Source: batch 73 SD measurement results, group AN251). This piece is the quick fix: what broke, why it broke in one direction only, and the two repairs that hold.

What The Counted Zeroes means

The Counted Zeroes is the pattern in which a size label carries its value as a count of repeated characters — here, zeroes — so the label is a tally wearing the costume of a number, and any reader that parses it as a number destroys the value completely, collapsing every tally that shares the digit into a single entry. The nearest prior concept in this register is The Vanishing Zeros (AN148, batch 48), the guitar-string pattern in which "transcribing sizes into that form collapses neighbouring sizes onto each other" — there, gauges written in millimetres at one decimal place merged because the rounding grid was coarser than the ladder. The two collapses differ in mechanism and in mercy. The Vanishing Zeros is a rounding injury: information is lost at the grid's edges, some sizes survive, and finer transcription would have saved them all. The Counted Zeroes is a parsing injury: no rounding occurs anywhere, the labels are transcribed perfectly, and the loss happens when a reader insists the tally is a number — at which point the four finest grades do not blur, they become identical, and no fineness of transcription can help, because the digits were never the value. The count was.

The breakage, row by row

Read the register's fine end as the spreadsheet did. The label #0000 parses to the integer 0. The label #000 parses to the integer 0. The label #00, the integer 0. The label #0, the integer 0. The labels #1 through #4 parse to 1, 2, 3 and 4, and survive untouched — which is why the breakage went unnoticed for a cycle: half the register, the whole coarse half, filed perfectly, and the system's counts for #1 to #4 stayed true. The reader's snap-back rule then assigns the integer 0 to the register's first zero grade, #0000, so every parsed zero grade — all four grades' rows in that spelling — is filed as the finest grade in the register (Source: batch 73 SD measurement results, group AN251). The direction of the error is the dangerous part. A finisher who orders #00, very fine, for work between coats is recorded as ordering #0000, super fine, two grades finer; a stocktake that counts #000 and #0 on the shelf reports them as the premium grade. Every misfile makes the fine end look finer than it is, and the coarse half's correctness lends the whole column unearned trust. Staged, the register reads 60 of 60 by the printed label, 120 of 120 once the slash notation is added, and 281 of 300 under the full parse.

GradeZero countSlash notationMaker's bandInteger parse of the label
#000044/0super fine0
#00033/0extra fine0
#0022/0very fine0
#011/0fine0
#1none—medium1
#2none—medium coarse2
#3none—coarse3
#4none—extra coarse4

Fix 1: store the label as text, and the count beside it

The first repair is at the column definition. A grade column must be text, never numeric: the moment a system types the column as a number, the tally is dead and no downstream rule can resurrect which zero grade a 0 was. Beside the text label, store the derived count — the number of zeroes for the four fine grades, and a marker that the numbered grades carry none — because the count is the sortable quantity the number column was pretending to be. Sorted by count and then by numeral, the register orders itself correctly from #0000 to #4; sorted by the integer parse, its fine end is a four-way tie at zero that any report will silently order by arrival. In the harness, both the printed label and the zero-count spelling recovered all 60 of their rows, as did the slash notation and the band names (Source: batch 73 SD measurement results, group AN251). The register is not short of safe spellings. It is short of exactly one thing: a reader willing to treat its finest labels as tallies instead of numbers.

Fix 2: the worked row — auditing a column that already parsed

The second repair is for the chain that already imported. Take a legacy column holding integers: 0, 0, 0, 0, 1, 2, 3, 4, in unknown proportions. The integers 1 to 4 are trustworthy — they can only have come from #1 to #4, since no zero grade parses above zero. Every 0 is a four-way ambiguity among #0000, #000, #00 and #0, and no operation on the column itself can separate them; the information was destroyed at import, not misplaced. The audit therefore has to leave the spreadsheet: match each zero row against the order history or the physical shelf, where the slash notation on the packaging — 4/0 against 1/0 — still carries the count. Where no external record survives, the honest repair is to mark the row's grade as "zero grade, unspecified" rather than let a default file it as #0000, because the default is not neutral: it promotes three grades to the finest one, inflating the apparent quality of everything the chain sold as fine wool that cycle. A register repaired this way keeps a visible scar — a count of unspecified rows — and the scar is the correct output. It tells the next reader exactly how much of the fine end the integer parse cost.

One-line conclusion, with its conditions

Store steel wool grades as text and sort them by their zero count, because the grade is a tally, not a number — a conclusion that holds for the standard eight-grade register as measured here, in which four grades are distinguished only by counted zeroes, and for any reader, human or machine, that would otherwise parse the label into the integer that erases them.

Q: Why did only the fine grades break in the spreadsheet? A: Because only they are tallies. The grades #1 to #4 are genuine numerals and parse to themselves. The grades #0000 through #0 are counts of zeroes; parsed as integers they are all 0, and the register's reader filed every one as the first zero grade, #0000. The integer spelling recovered 41 of 60 rows, losing only zero grades.

Q: Is the slash notation, 4/0, a fraction? A: No. It is the trade's second tally: the numerator counts the zeroes, so 4/0 names #0000 and 1/0 names #0. Read as arithmetic it is a division by zero; read as the trade writes it, it is exact, and in this measurement it recovered all 60 of its rows.

Q: Can a parsed column of zeroes be repaired from the column alone? A: No. The parse destroyed the count, and the four zero grades are indistinguishable inside the column. Repair requires an external record — packaging, order history, the physical shelf — or an honest "zero grade, unspecified" marker where no record survives.

Q: Does sorting the text labels alphabetically work? A: For this register, the printed labels sorted as text give #0, #00, #000, #0000, #1, #2, #3, #4 — the fine end in reverse order, coarsest of the zero grades first. It is consistent but inverted; sorting by the stored zero count, then the numeral, gives the true finest-to-coarsest order directly.

Know someone who needs this? Share it.

Advertisement