gh-106498: Revert incorrect colorsys.rgb_to_hls change (#106627)
gh-86618 assumed a-b-c = a-(b+c) = a-d where d = b+d. For floats 2.0, 1.0, and 0.9999999999999999, this assumption is false. The net change of 1.1102230246251565e-16 to 0.0 results in division by 0. Revert the replacement. Add test.
T
Terry Jan Reedy committed
a2d54d4e8ab12f967a220be88bde8ac8227c5ab3
Parent: 64c0890
Committed by GitHub <noreply@github.com>
on 7/11/2023, 3:07:20 PM