Drop 1/7 into the numerator and denominator boxes and the equivalent decimal column answers 0.1428571429... - three dots at the tail, no marker for the repeating block. Search the whole page and the word recurring shows up 0 times. That single fact pulls a chain of questions: where does the length of this column come from, does the percent column follow the same rounding rule, is there a third output shape. So the output side of this page was reconciled column by column. Every number below is what this page's own functions return for a concrete input, measured in plain Node, with no browser opened.
The gcd path on this page: the steps are real, but none of them reach the screen
The fraction reducer page finds the greatest common divisor with a while loop that keeps taking remainders. How far it walks depends on which number is written first: 6/8 takes 3 steps, flip the pair into 8/6 and only 2 steps are left; 123456/654321 takes 9 steps, and flipped it takes 8.
The trouble is that the interface never hands you those steps. The process block branches on one condition, whether the common divisor is 1, and answers with 3 lines or 6 lines; the line count has nothing to do with how many iterations actually ran. The gap between 9 steps and 8 steps is invisible on screen, and you only catch it by calling the function outside the page.
Figure 1: four bars for four ways of writing the same pair; on screen the line-count state and the step count are two different things.
The equivalent decimal column: measure the string first, then pick the exit
This column has exactly two exits, and the test is neither the size of the value nor the digit count of the denominator but the length of the string: up to 14 characters it prints as is, past that it keeps 10 digits and appends three dots. For any value below 1 the second exit always produces 15 characters, and the 0.1428571429... met at the top came out of that exit. 1/11 gives 0.0909090909..., 1/13 gives 0.0769230769...; the three dots are only a truncation sign and never mark which digit the block starts from.
The mismatch that follows is the interesting part. The string for 1/10000000 is only 4 characters, shorter than the threshold, so the decimal column prints 1e-7 as is; equally short are 1/12500000 → 8e-8, 1/20000000 → 5e-8, 1/80000000 → 1.25e-8, each one saved only because the character count stayed under the line. Once a string passes 14 characters everything folds back to plain decimal: 1/9000000 → 0.0000001111..., 1/11000000 → 0.0000000909..., 1/30000000 → 0.0000000333....
The same batch of exits also yields a side effect: 1/9999999 and 1/10000001, denominators only two apart, both display as the same 0.0000001000... in the decimal column, and both read 0.00% in the percent column.
Figure 2: short strings on the left print as is, long strings on the right cut to 10 digits and add dots, and the threshold measures characters.
The percent column keeps its own two places, pointing the other way
The percent column does not share the cutoff of the decimal column. It holds two places on its own, and the two inputs whose tail is a 5 move in opposite directions under that rule:
| Input | Raw percent value | Percent column |
|---|---|---|
| 1/32 | 3.125 | 3.13% |
| 1/320 | 0.3125 | 0.31% |
| 1/512 | - | 0.20% |
| 1/2048 | - | 0.05% |
| 1/999983 | 0.0001000017000289005 | 0.00% |
The most extreme case is 1/999983: the raw value 0.0001000017000289005 collapses to 0.00% in the percent column, while the decimal column still returns 0.0000010000... Each column cuts its own way, and neither tells the other.
Only two output shapes: integer and improper fraction
Once the reduction finishes, this page recognises two shapes only. When the denominator divides the numerator the answer is an integer: 12/4 gives 3, 7/1 gives 7, 1000000/1000000 gives 1. When it does not divide, the improper fraction stays: 7/3 has no common divisor to remove in the first place, so it comes back as 7/3. The mixed-number shape, an integer plus a proper fraction, has no exit at all - the connector it would need appears 0 times in the template. To keep adding or subtracting, switch to the fraction calculator; this page only narrows a single fraction down to the two shapes above.
Decimal input and out-of-range integers: truncation happens before reduction
Both boxes pass a truncating integer conversion before the reduction logic starts, and that step is rougher than it looks. Put 0.75 in the numerator box with 2 in the denominator box and the numerator is cut to 0 first, so the reduced result cannot be taken at face value; only the multiple column still answers 1/2. Leading zeros are harmless: 007 over 14 gives 1/2 just the same, and the multiple column gives 1/7. What is easy to miss is an out-of-range large value. A 16-digit numerator of 9007199254740993, already past the safe integer edge, paired with a denominator of 2, is folded into 9007199254740992 before it takes part in any arithmetic, and the simplest-form column then returns 4503599627370496. For inputs of this kind the page gives exactly these characters, and nothing here carries over to another environment.
Bulk paste: arrows and equals signs compared character by character
The leading symbol of each bulk line is compared character by character against the original string of that line, but a few lines are rebuilt before the comparison happens. The line written 7/1 is one of them: its original string is reassembled first and the slash on the left of the equals sign disappears, so the whole line reads "row 2: 7 = 7 (7)", one character short. The four preset lines 3/6, 4/8, 10/15, 24/36 all take the arrow instead, and the comparison ends with 4 arrows and 0 equals signs. Then the ledger of lines and size:
- 50 lines sampled from 2/4 to 51/53: 50 rows rendered, arrows and equals signs 25 times each, output 11242 characters and 11492 bytes.
- 30 lines sampled from 1/2 to 1/31: 30 rows rendered, 0 arrows, output 6667 characters and 6787 bytes.
- The same question pasted as 5 identical lines: 5 lines of output, no deduplication, and no summary of how many succeeded.
Empty input does not clear the list: 212 characters still sit in the DOM
Run 6/8 once and the result list writes 212 characters of row HTML. Then clear both input boxes: the page only flips the list back to hidden, and those 212 characters stay in the DOM. Three lines of pure whitespace take the very same branch. Minus signs, blank lines and the rest of the input-side forms belong to a separate article on input forms of the reduce page, and none of its conclusions are repeated here.
Three common questions
Q: does a fraction such as 1/7 show its repeating block?
It does not. The decimal column gives 0.1428571429..., the three dots at the end only mean truncation, the word recurring appears 0 times across the page, and no block marker is drawn anywhere.
Q: can the result come out as a mixed number?
No. This page has two shapes only, integer and improper fraction, so a value such as 7/3 simply stays 7/3.
Q: do the percent column and the decimal column round the same way?
No. The percent column keeps two places on its own: 1/32 gives 3.13%, 1/320 gives 0.31%, 1/999983 gives 0.00%, while the decimal column for the same input still returns 0.0000010000...