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: 
Anonymous
Not applicable

How to convert a hexadecimal to bigdecimal

Hi,

My requirement is to convert a string coming from a file in the format "00714078c3" and I have to convert it to bigdecimal and then do some look up with data in the lookup tables. 

I am using tmap component. 

 

Apparently bigDecimal will not work as it is alphanumeric.

 

Can someone please help with that? 

Labels (2)
3 Replies
Anonymous
Not applicable
Author

Why don't you convert the lookup data to string value before doing the join?
Anonymous
Not applicable
Author

Hi,

 

   A quick method is as shown below. You can further convert the value from Integer to BigDecimal (if needed) using tConvertType component.

0683p000009M9En.png

 

0683p000009M93I.png

 

Integer.parseInt(row1.data,16)

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved

rmartin2
Creator II
Creator II

Thank you I didn't now you could parse it like that !
I'll sleep smarter tonight 0683p000009MACn.png