IsNumeric("Nan") returns True, but "NaN" is code for "Not a number"

In my automation, I get text from an element on the browser page which should be a number, but sometimes contains “NaN” or “>15” or “<1” or similar.

IsNumeric returns False for these except when it is “NaN”.

This is so wrong. Do I have to code around this? Is this a bug?

Thanks

Hi @Phillip_Duncan

Your query is quite confusing could you be more specific and provide some of the screenshots for our understanding.

HI,

Because Double.NaN is defined and “NaN” can be converted into Double type.

So, how about the following as workaround?

Sample
Sample20240712-2 (2).zip (2.7 KB)

Regards,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.