Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
lalaura
Contributor

Substring of a double converted to string

Hello,

in my tMap (Talend Open Studio) I need, starting from a Double, to convert the absolute value to String, and then to extract the first digit.

I've tried many combinations, including Mathematical.ABS(myMapping.price).toString(); and then substring

but none of them is working.

Any help?

TIA

Laura

Labels (2)
1 Reply
manodwhb
Champion II

@not specified not specified​ ,can you share sample input and required output?

 

Thanks,

Manohar