Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] How to convert float to integer in tMap ?

Hello
How to convert float (AS400) column to integer (Postgres) column in tMap ?
I tried several methods without success 😞
Thanks
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

hi,
have a look at :
 http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#parseInt(java.lang.String)
It give you the method in java 
ps : you can also do something like 'java String to integer' in google Smiley Wink  or look for similar post in Talend forum with the option Search ....
regards
laurent

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Hello
try
(int)row1.columnName

Best regards
Shong
Anonymous
Not applicable
Author

thanks a lot Shong, it works !
I don't understand why i haven't try this before...
Anonymous
Not applicable
Author

how to convert string 0.15 into integer?
thanks and regards
Syed
Anonymous
Not applicable
Author

Integer.parseInt(yourstring);
Anonymous
Not applicable
Author

hi,
have a look at :
 http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#parseInt(java.lang.String)
It give you the method in java 
ps : you can also do something like 'java String to integer' in google Smiley Wink  or look for similar post in Talend forum with the option Search ....
regards
laurent