I have a variable (float slope) that sometimes will have a value of nan when printed out since a division by 0 sometimes happens.
float slope
I am trying to do an i
Nothing is equal to NaN — including NaN itself. So check x != x.
NaN
x != x