7.4 NaN is now nan

I have noticed that after upgrading from 7.3 to 7.4 that screens that use to look for “NaN” in datasets is failing because it is now “nan”. Was this suppose to happen? Am I suppose to look the for not a numbers some other way so my screens do not break in the future?

Thank you,

This isn’t anything that I’m aware of, which means it’s probably an unintentional side effect of something else. Where exactly are you doing the logic to compare it to “NaN”? An expression? A Script?

I am looping through a dataset from a table component on the event mousePressed(). I am looking for “NaN” in the cell.

if(str(cell) == "NaN"):
     cell = ''

It’s a side effect from the [P|J]ython 2.1 -> 2.5 upgrade. It’s ‘nan’ now, not ‘NaN’. I think you’ll also find ‘Infinity’ is now ‘inf’.