Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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?
Hi,
A quick method is as shown below. You can further convert the value from Integer to BigDecimal (if needed) using tConvertType component.
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