Blog: notes on backend, data and AI
Notes on backend engineering, data and building products with AI.
November 20, 2026 · 2 min read
Floating-point numbers: why 0.1 + 0.2 is not 0.3, and what to do about money
Binary floating point cannot represent most decimals exactly. Compare with a tolerance, and store money as integers or decimals.
numbersdata
November 20, 2026 · 2 min read
Time zones, UTC and Unix time: how not to get time wrong
Store instants in UTC, keep the time zone name for display and be careful with daylight saving. The rules that prevent most date bugs.
timedata