Vectors not equal



  • On 16/12/2013 at 04:03, xxxxxxxx wrote:

    I have a color which I convert via "colorsys.rgb_to_hsv" to hsv.
    Then there is an allgorythm changing hsv-value, afterwards converting it back to a rgb vector.

    Now I compare the original rgb vector with the new rgb one, if they are the same.
    And although a print of those two vectors shows they have the same values, an if statement doesn´t agree with that and says they are not ;-)

    What is going on here?



  • On 16/12/2013 at 04:22, xxxxxxxx wrote:

    Ok, posting was needed to find out why ;-)
    A vector print shows only the first three decimals...
    Now I must find a fixing solution...


Log in to reply