Storing money as an integer is OK but I've never liked APIs that required financial amounts to be integers. Amounts always eventually need to be displayed to a human as a decimal.
Yeah this is exactly what I do under the hood. All the data is stored as Ints, charts use double for speed, views use decimal to display stuff properly in the user locale.
P.S. Doubles are absolute evil for calculations:
@Test
func test() {
var a = Decimal(100.4449315513924) * 100 // It's me being dumb, not noticing that
let b = NSDecimalNumber(decimal: a).intValue
#expect(b == 10044) // Expectation failed: (b → -8402) == 1044
}
“ A total of around 575,000 residential heat pump units were sold across 11 European countries from January to March 2026, up from 494,000 in the same period in 2025”
Not a big increase on a relatively small base. What is the takeaway here?
2.3 million a year for something with a 20-30 year lifetime is a lot. It's not quite enough for "in 20 year everyone will have one", but you only need another 5 or 10 years of similar 15% growth to get there.
I don't go to the gym much but that is one place where I would be VERY careful trying to strike up a confirmation and heaven forbid tapping someone on the shoulder.
You can sign up for a plan on the kimi code platform and use it via the pi.dev coding agent, or opencode. In planning, I’d say it’s almost on par with Claude Opus.
reply