Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

IsNum()????

Hi,

Why does the IsNum() logical function see 'R54305' and '3E12' as Numbers? Or at least returns 'true' for these values?

Is it seeing the first one as a currency value perhaps? And the second one as coordinates?

Please help, this is screwing me around... [:@]

Thanx!

Hesten-

1 Solution

Accepted Solutions
hector
Specialist
Specialist

Hi, well 3e12 it's been read as 3.000.000.000.000, you can check this doing a textbox with this expression num('3E12','#.##0').

the other value, at least for me xD, isn't a number, maybe you can do the same test that i mentioned above, num('R54305','#.##0').... this returns me a null (-) value

rgds

View solution in original post

5 Replies
hector
Specialist
Specialist

Hi, well 3e12 it's been read as 3.000.000.000.000, you can check this doing a textbox with this expression num('3E12','#.##0').

the other value, at least for me xD, isn't a number, maybe you can do the same test that i mentioned above, num('R54305','#.##0').... this returns me a null (-) value

rgds

Not applicable
Author

Thanks!!!

I just wish I knew why it still sees the other value as a number... oh well...

Not applicable
Author

I just tried this in 9, and isnum('R54305') returns 0.

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Hesten,

it's called "scientific notation":

nnnEmmm = nnn * 10 ^ mmm

(where sign ^ means "10 to the power of mmm")

It's used in some scientific applications to represent exceptionally large or exceptionally small numbers.

cheers,

Not applicable
Author

Thanks guys.

I also used it on its own and got 0 for isnum(R54305). But somehow, when reading it from source files and being part of other functions, it still saw it as a number and I got -1. But I have found a way around this for my specific solution, so don't worry. Seeing as no one else could reproduce it... I guess we'll leave it there.

Thanks Oleg... these are the kinds of things one forgets while struggling... I got so caught up in the issue that I didn't even think of that...

Thanks.