News for hackers. Stuff that matters.
Re:How to Correctly Sum Up Numbers by Zamiel_Snawley on Sunday November 03, 2024 @02:37PM (#42035535)
Saturation arithmetic doesn’t get enough love, either.

I’ve heard Zig has convenient facilities for it.

Re:How to Correctly Sum Up Numbers by GMoromisato on Sunday November 03, 2024 @08:32PM (#42037618)
I didn't know it was called that, but I agree! Clamping is a valid option for overflow.