I’m on Unreal 4.25.4, using a Custom Node to compare the colors between a sampled Texture and a given Color (represented as a Float4). Both inputs use Linear color space, and values from 0 to 1. The relevant code that handles the comparison is:
//Return 1.0 anywhere that the Texture contains FindThis. Otherwise, return 0.0.
return (Texture == FindThis) ? 1.0 : 0.0
However, this always returns 0.0 because while the color to find and the color present in the texture are the same, some part of how Constant4Vectors are stored mess up the color just enough to be different, as seen below:

How do I resolve this issue? The created Constant4Vector was given the correct color, but it simply does not use it.
Regards,
radzo73