News for hackers. Stuff that matters.
Re:Mean of two floating point numbers can be dangerous by jameshart on Sunday June 05, 2016 @01:56PM (#11842150)
That is the safe technique for common cases such as locating a pivot in an array - where min and max are guaranteed to be positive (or you're using unsigned ints in the first place). That approach doesn't solve the overflow problem in general for signed ints.

There are no comments on this comment yet.