The marathon is 42.195 km. Divide by 1.609344 and you get 26.219 miles, usually quoted as 26.2. Convert 26.2 back and the answer is 42.1648128 km — thirty metres short of the real race. The shortfall is not a conversion bug; it is the tenth-of-a-mile that was thrown away.
This is the standard exam lesson on significant figures, made concrete: the mile figure carries three significant digits, so the kilometre answer cannot honestly carry nine. The screen prints all nine because the converter does not know you rounded.
Answer
42.1648128 km
How to read it
Official distance is 42.195 km; the 30 m difference is the rounding in "26.2 miles".
Source
IAAF / World Athletics official marathon distance 42.195 km (fixed 1921, from the 1908 London course); mile = 1609.344 m exactly by the 1959 international agreement
Work it in the calculator
These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.