Float to String in Tmap

Highlighted
Six Stars

Float to String in Tmap

Hello,

 

I a few fields I am trying to convert from a Float from the Input to a String in the Output.  I have tried a few different ways and I get an error back on each way.  

I have tried the following:

Row1.Field1.toPlainString()

 and

Float.parseFloat(row1.Field1).toString()

 

Each time I try either of these I get an error saying the method is not applicable.   Any idea what I am missing?

 

thanks!

 

 


Accepted Solutions
Six Stars

Re: Float to String in Tmap

Thank you @manishchokkaram .   This is extremely helpful!

 

View solution in original post


All Replies
Seven Stars

Re: Float to String in Tmap

Try this:

 

String.valueOf(row1.Field1)

DataTeam.pl

Nine Stars

Re: Float to String in Tmap

Hello steel @steeld95 

Please follow this link below

 

http://talendhowto.com/2017/08/29/convert-between-different-datatypes/

 

 

Thanks,

Manish

Six Stars

Re: Float to String in Tmap

Thank you!   That did it.  Now I am able to move data.  I appreciate the help!

Six Stars

Re: Float to String in Tmap

Thank you @manishchokkaram .   This is extremely helpful!

 

View solution in original post

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog