I noticed that the hue is being rounded down (aka "floored") instead of being rounded to the nearest number.
For example, let's say I select RGB values 255, 100, 0. At this point the hue is 60 * (green - blue) / (max - min) = 60 * (100 - 0) / (255 - 0) = 23.529. I would expect that to be rounded to 24, but Paint.NET shows 23.
Is there a reason for this behaviour or is this a bug?