Two divisions carry the whole argument. Sunlight at Syene (Aswan) stands straight up at the summer solstice while a pillar in Alexandria casts a shadow whose angle is 7.2°, so the two cities sit a 1/50-th of a turn apart — 360/7.2 gives 50 on the workbench. Multiply by the 5000 stadia between them and the screen answers 2.5⋅10+5, which is 250,000 stadia: too many digits for the display, so it switches to the exponent.
Whether Eratosthenes was nearly right depends entirely on which stadion he meant. Take 157.5 m, the figure usually assigned to the Egyptian royal-cubit stadion, and 250,000 of them is 39375 km — within about 1.7% of the modern 40,075 km. Take the Attic stadion of 185 m instead and the same arithmetic gives 46,250 km, fifteen percent too big. The angle was the good part; the road distance was a caravan estimate, and the unit is a footnote that changes the answer by a tenth of the Earth.
Answer
2.5⋅10+5
How to read it
50 × 5000 stadia on the workbench, the circumference as Eratosthenes stated it. The first link is the 1/50 ratio from the shadow angle; the third converts with a 157.5 m stadion.
Source
Eratosthenes of Cyrene, c. 240 BCE, reported by Cleomedes and Theon of Smyrna: 5000 stadia between Alexandria and Syene, a solstice shadow of 7.2° = 1/50 of a turn, giving 250,000 stadia and, in his later figure, 252,000
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.