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
In Swift, you need to do slope.isNaN to check whether it is a NaN.
slope.isNaN