Skip to Content
0
Mar 06, 2019 at 08:21 AM

String to Decimal Format in Mapping UDF

351 Views Last edit Mar 06, 2019 at 09:17 AM 2 rev

Hi Experts,

I have a requirement where I am getting values in string which I am using as multiply later which is failing due to mismatch in type.The input structure of the queue is mentioned below-

112

110

[]

[]

[]

100

Using the UDFs mentioned in various scn links

Double f=Double.parseDouble(var1[0]);

result.addValue(f);

Output structure-

112

I want the the output structure for all the queue values, tried many options but its not working. Can anyone please suggest some easy options?

Thanks,

Nidhi Srivastava