I was working on BetterFit's Apple Health summary command when two synthetic exports exposed different numeric limits. Two weeks with 7.2e18 seconds each fit the text formatter on their own. Their combined duration still fit in a Double, but converting it to whole seconds as an Int trapped. The formatter fix keeps the full hour count in each weekly row and prints - for the combined duration.
The next fixture put two finite 1e308 readings in the same week. Duration, energy and distance overflowed during aggregation, so JSON encoding failed. I made each overflowing total missing and calculated average heart rate as a running mean. The fixture's heart-rate readings of 1e308 and 1.6e308 have a representable mean of 1.3e308 even though their sum overflows.
The regression checks the distinction across all three outputs. An overflowing weekly total becomes - in text, a blank field in CSV and an omitted property in JSON. The fixture's measured zero still exports as zero. A valid imported number can cross a new limit every time it gets converted or combined.