Setting a variable to NaN sets it to 0 instead

graphing script pic

graphing script pic(1)

I think that's intentional because it is not a number and they try to translate it. OK Here is it:
untitled script pic (5)

It should at least be consistent.

i don't see how that makes any sense, NaN and 0 are different values and they behave completely differently. i don't know what you mean by "translate"