I don't know if ChatGPT is just "guessing" that the same technique might apply to this related scenario, or if someone out there has tried to implement it and gotten it wrong and it's copying from that. (The problem is more complicated if positive negative floats are allowed.)