Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Converting string to numbers

Hi:

I am trying to convert a field that can have a possible of 30 number with a max of 15 decimals in QlikView. I am doing,

 

Num(A_Value, '0.0')

Can someone let me know if this is correct

Thanks,

Tak

20 Replies
Not applicable
Author

Sry I didnot understand clearly....

If your A_Value is 1234.333444 then you should get 1234.3 not 4.3

check one more time and see my attachment....

Not applicable
Author

How do I get it to ensure that it is comparing what ever it is in the A_value and B_value. If A_value is 1234.333444, I need to ensure that it is comparing what ever maybe in that fields. If I were to use the code that I did, I will only get 4.3.

B_value may have 4.344 and the result would be 4.3 and will consider it to be a match when it should not be.

Num(A_Value, '0.0')

Thanks,

MayilVahanan

HI

Have doubt?

do u want like this?

1234.333444 -> 4.3

4.344 -> 4.3

are you want first decimal value. and ones in the number?

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

You can try by using Num#(A_Value,'#')

Not applicable
Author

Hi:

I really need the value to be the same without any truncation or rounding.

if it have 20 digits and 10 decimal places, I need to keep it as is. Or if it has 15 digings and 5 decimal places, I need to also keep it as it.

Thanks,

Not applicable
Author

Hi:

I really need the value to be the same without any truncation or rounding.

if it have 20 digits and 10 decimal places, I need to keep it as is. Or if it has 15 digings and 5 decimal places, I need to also keep it as it.

Thanks,

Not applicable
Author

Will this keep the value the same regardless of how many digits or decimals?

Thanks,

Not applicable
Author

Will this keep the value the same regardless of how many digits or decimals?

Thanks,

CELAMBARASAN
Partner - Champion
Partner - Champion

Yes it will keep the whole thing. Didn't you checked it?

Not applicable
Author

It didn't seem to work. I was getting all the digits with 1 decimal place. I will check it again.

Thanks,