<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Convert String to Decimal format in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320058#M90239</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got your point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can make some work around.&lt;/P&gt;&lt;P&gt;In tMap.&lt;/P&gt;&lt;P&gt;Create a Var in the mid section (int) (Double.parseDouble(row8.product_price)*100 )  which result should be 1456.&lt;/P&gt;&lt;P&gt;In the output, Double.parseDouble(String.valueOf(Var.var1))/100f which result would be 14.56&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The concept is whenever the decimal place you need to cutoff instead of rounding, you just need to multiply by 100 (depends on how many decimal place you wants) and convert to Integer, and divide by the number multiply by before to return them to your desired value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2021 02:41:44 GMT</pubDate>
    <dc:creator>CLi1594691515</dc:creator>
    <dc:date>2021-01-21T02:41:44Z</dc:date>
    <item>
      <title>How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320055#M90236</link>
      <description>&lt;P&gt;My source is csv file and I have one column say (Eg:&lt;B&gt; Product Price&lt;/B&gt;) It has &lt;B&gt;1456.45667&lt;/B&gt; as value in csv file. While reading the file in Talend this column treat as &lt;B&gt;String&lt;/B&gt;. But I want to check the format as decimal. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am expecting the output as&lt;B&gt; 1456.45&lt;/B&gt; (Not even round value). expecting it should accept only two digits after decimal. Even I have tried to change the Datatype and it shows the error as Cannot Convert String to Decimal.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 16:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320055#M90236</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-01-19T16:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320056#M90237</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using tMap, input String and output is float, you need to perform parsing dataType to do so. &lt;/P&gt;&lt;P&gt;In your case, you may use Double.parseDouble(String) whichever data type you need to convert to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to read it as float/double, you can set it in schema in input component.&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000BE2ylAAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130463i13220B4FC99F3D2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000BE2ylAAD.png" alt="0693p00000BE2ylAAD.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 02:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320056#M90237</guid>
      <dc:creator>CLi1594691515</dc:creator>
      <dc:date>2021-01-20T02:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320057#M90238</link>
      <description>&lt;P&gt;Thanks for your reply. But Still am facing this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tMap&lt;/P&gt;&lt;P&gt;*******&lt;/P&gt;&lt;P&gt;&lt;B&gt;&amp;lt;Product Price&amp;gt; - 14.5674 (It is reading as String) -&lt;/B&gt;Based on my source data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output table&lt;/P&gt;&lt;P&gt;****************&lt;/P&gt;&lt;P&gt;I am using this below syntax in output table expression Builder,&lt;/P&gt;&lt;P&gt;Double.parseDouble(&lt;B&gt;Product Price&lt;/B&gt;) - I have changed this column datatype as "Double" and I have set precision as 2. It is not throwing the error after run job. But the value appear in table as &lt;B&gt;14.5674 instead of 14.56.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;﻿&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 16:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320057#M90238</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-01-20T16:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320058#M90239</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got your point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can make some work around.&lt;/P&gt;&lt;P&gt;In tMap.&lt;/P&gt;&lt;P&gt;Create a Var in the mid section (int) (Double.parseDouble(row8.product_price)*100 )  which result should be 1456.&lt;/P&gt;&lt;P&gt;In the output, Double.parseDouble(String.valueOf(Var.var1))/100f which result would be 14.56&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The concept is whenever the decimal place you need to cutoff instead of rounding, you just need to multiply by 100 (depends on how many decimal place you wants) and convert to Integer, and divide by the number multiply by before to return them to your desired value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 02:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320058#M90239</guid>
      <dc:creator>CLi1594691515</dc:creator>
      <dc:date>2021-01-21T02:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320059#M90240</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response, I have tried the way you explained but still am not getting the expected output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source&lt;/P&gt;&lt;P&gt;**********&lt;/P&gt;&lt;P&gt;Product Price - 14.6783 (String Datatype)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the Var as below,&lt;/P&gt;&lt;P&gt;Double.parseDouble(row4.Transaction_LINE_Quantity)*100&lt;/P&gt;&lt;P&gt; (Choose the datatype as Int)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output table&lt;/P&gt;&lt;P&gt;**************&lt;/P&gt;&lt;P&gt;Double.parseDouble(String.valueOf(Var.var1))/100 &lt;/P&gt;&lt;P&gt;(Set datatype as Double)&lt;/P&gt;&lt;P&gt;After run the job the below error am getting&lt;/P&gt;&lt;P&gt;Type Mismatch: "Cannot convert from double to int"&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 16:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320059#M90240</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-01-21T16:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320060#M90241</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the example. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tMap&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000BEFFSAA5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157557iCD7C1352D070254F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000BEFFSAA5.png" alt="0693p00000BEFFSAA5.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000BEFFfAAP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141548i7876ECC24222A4BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000BEFFfAAP.png" alt="0693p00000BEFFfAAP.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 16:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320060#M90241</guid>
      <dc:creator>CLi1594691515</dc:creator>
      <dc:date>2021-01-21T16:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320061#M90242</link>
      <description>&lt;P&gt;THANKS IT'S WORKING FINE AS EXPECTED. I have listed out  the below.&lt;/P&gt;&lt;P&gt;Product Price - 14.6783 (String Datatype)&lt;/P&gt;&lt;P&gt;I have created the var as below,&lt;/P&gt;&lt;P&gt;(int)(Double.parseDouble(row4.Product price)*100) (Set datatype as Int)&lt;/P&gt;&lt;P&gt;Output table&lt;/P&gt;&lt;P&gt;**************&lt;/P&gt;&lt;P&gt;Double.parseDouble(String.valueOf(Var.var1))/100 (Set datatype as Double and precision 2)&lt;/P&gt;&lt;P&gt;I am getting the expected output as 14.67 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 17:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320061#M90242</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-01-21T17:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320062#M90243</link>
      <description>&lt;P&gt;But the same scenario I want another field accept only 4 decmial place and I don't want to round up the values.&lt;/P&gt;&lt;P&gt;Product Price - 0.91275 (String Datatype)&lt;/P&gt;&lt;P&gt;I have created the var as below,&lt;/P&gt;&lt;P&gt;(int)(Double.parseDouble(row4.Product price)*100) (Set datatype as Int)&lt;/P&gt;&lt;P&gt;Output table&lt;/P&gt;&lt;P&gt;**************&lt;/P&gt;&lt;P&gt;Double.parseDouble(String.valueOf(Var.var1))/100 (Set datatype as Double and precision 4)&lt;/P&gt;&lt;P&gt;I am expecting the value in csv file as (0.9127) instead of 0.91. It is getting roundup the value.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 17:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320062#M90243</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-01-21T17:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320063#M90244</link>
      <description>&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;2 decimal place 100&lt;/P&gt;&lt;P&gt;4 decimal place 10000&lt;/P&gt;&lt;P&gt;the control of dp of the value itself is not depends on the precision setting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(int)(Double.parseDouble(row4.Product price)*&lt;B&gt;10000&lt;/B&gt;)&lt;/P&gt;&lt;P&gt;Double.parseDouble(String.valueOf(Var.var1))/&lt;B&gt;10000&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 17:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320063#M90244</guid>
      <dc:creator>CLi1594691515</dc:creator>
      <dc:date>2021-01-21T17:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320064#M90245</link>
      <description>&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;The 4 decimal places it's getting displayed (0.91275) - 0.9127&lt;/P&gt;&lt;P&gt;for 2 decimal places it's getting appear as (30.7474) - 30.74&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 18:35:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320064#M90245</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-01-21T18:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320065#M90246</link>
      <description>&lt;P&gt;Source&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;Product price &lt;/P&gt;&lt;P&gt;This is column is not mandatory and it have null values also in source data and it's reading the data as String.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the below ways, but still am facing the Empty String issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(row4.Unit_Selling_Price.equals(null)?null:(int)(Double.parseDouble(row4.Unit_Selling_Price)*10000))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(row4.Unit_Selling_Price!=(null)?(int)(Double.parseDouble(row4.Unit_Selling_Price)*10000):null)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(row4.Unit_Selling_Price.equals(null)||row4.Unit_Selling_Price!=(null)?(int)(Double.parseDouble(row4.Unit_Selling_Price)*10000):null)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 17:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320065#M90246</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-01-28T17:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320066#M90247</link>
      <description>&lt;P&gt;".equals()" doesn't apply to null value. you can use row4.Unit_Selling_Price == null instead&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 17:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320066#M90247</guid>
      <dc:creator>CLi1594691515</dc:creator>
      <dc:date>2021-01-28T17:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320067#M90248</link>
      <description>&lt;P&gt;I tried with this statement,&lt;/P&gt;&lt;P&gt;((row4.Unit_Selling_Price==null)?null:(int)(Double.parseDouble(row4.Unit_Selling_Price)*10000))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the exception is occur,&lt;/P&gt;&lt;P&gt;Exception in component tMap_1 (Datavalidation_Filter_V1_3_tconvertype)&lt;/P&gt;&lt;P&gt;java.lang.NumberFormatException: &lt;B&gt;empty String&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)&lt;/P&gt;&lt;P&gt;&amp;nbsp;at sun.misc.FloatingDecimal.parseDouble(Unknown Source)&lt;/P&gt;&lt;P&gt;&amp;nbsp;at java.lang.Double.parseDouble(Unknown Source)&lt;/P&gt;&lt;P&gt;&amp;nbsp;at &lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 09:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320067#M90248</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-01-29T09:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320068#M90249</link>
      <description>&lt;P&gt;--For Empty use below condition , for NULL use above&lt;/P&gt;&lt;P&gt;and for both use both the condition as "OR"&lt;/P&gt;&lt;P&gt;(((row4.Unit_Selling_Price)isEmpty())?null:(int)(Double.parseDouble(row4.Unit_Selling_Price)*10000))&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 11:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320068#M90249</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2021-01-29T11:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320069#M90250</link>
      <description>&lt;P&gt;my source csv file has blank value (i.e. Empty), So I have tried the below statements,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(((row4.Unit_Selling_Price.isEmpty())?null:(int)(Double.parseDouble(row4.Unit_Selling_Price)*10000)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;am getting the below error,&lt;/P&gt;&lt;P&gt;Exception in component tMap_1 (Datavalidation_Filter_V1_3_tconvertype)&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;&amp;nbsp;at datavalidation_jan11.datavalidation_filter_v1_3_tconvertype_0_1.Datavalidation_Filter_V1_3_tconvertype.tFileInputDelimited_1Process(Datavalidation_Filter_V1_3_tconvertype.java:52769)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even I have tried with both ,&lt;/P&gt;&lt;P&gt;(((row4.Unit_Selling_Price.isEmpty()||row4.Unit_Selling_Price==null)?null:(int)(Double.parseDouble(row4.Unit_Selling_Price)*10000)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But still facing the same issues.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 11:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320069#M90250</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-01-29T11:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320070#M90251</link>
      <description>&lt;P&gt;Why you are making the true value as "NULL" ?&lt;/P&gt;&lt;P&gt;Can you try to make it like 0 or something else &lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;(((row4.Unit_Selling_Price.isEmpty()||row4.Unit_Selling_Price==null)?0:(int)(Double.parseDouble(row4.Unit_Selling_Price)*10000)))&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 12:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320070#M90251</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2021-01-29T12:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320071#M90252</link>
      <description>&lt;P&gt;I have tried with this statement and it's working fine. Thanks for your response on this Empty String.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; I have one more clarification,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the source column as Product_Amount as Float&amp;nbsp;Datatype (Eg: &lt;B&gt;23.6161&lt;/B&gt;)&lt;/P&gt;&lt;P&gt;I am expecting this should load only the 2 decimal values (Eg: &lt;B&gt;23.61&lt;/B&gt;).&lt;/P&gt;&lt;P&gt;In Var&lt;/P&gt;&lt;P&gt;******&lt;/P&gt;&lt;P&gt;(int)(Float.parseFloat(row4.Product_Amount)*100) - Datatype is Int&lt;/P&gt;&lt;P&gt;Here I need to cut off the amount and need to multiply by 100 to convert to integer.&lt;/P&gt;&lt;P&gt;In output table&lt;/P&gt;&lt;P&gt;****************&lt;/P&gt;&lt;P&gt;Float.parseFloat(String.valueOf(Var.var9))/100&amp;nbsp;- Type is Float&lt;/P&gt;&lt;P&gt;While running the program I got the error as attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 13:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320071#M90252</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-01-29T13:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320072#M90253</link>
      <description>&lt;P&gt;It means you are passing a Float value in the parseFloat() function.&lt;/P&gt;&lt;P&gt;you should pass a string value in it or other data type value&lt;/P&gt;&lt;P&gt;(int)(Float.parseFloat(row4.Product_Amount)*100)&lt;/P&gt;&lt;P&gt;In the above statement as you mentioned row4.Product_Amount is of type Float, so it is wrong statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 13:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320072#M90253</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2021-01-29T13:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Convert String to Decimal format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320073#M90254</link>
      <description>&lt;P&gt;Source:&lt;/P&gt;&lt;P&gt;**********&lt;/P&gt;&lt;P&gt;row4.Product_Amount -String Data type.&lt;/P&gt;&lt;P&gt; I have changed the datatype in source from Float to String.&lt;/P&gt;&lt;P&gt;In Var&lt;/P&gt;&lt;P&gt;*******&lt;/P&gt;&lt;P&gt;(int)(Float.parseFloat(row4.Transaction_LINE_Amount)*100))) - Datatype int&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output table&lt;/P&gt;&lt;P&gt;**************&lt;/P&gt;&lt;P&gt;Float.parseFloat(String.valueOf(Var.var10))/100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still the same issue occurs... Can you please let me know where am doing the mistake...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 16:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Convert-String-to-Decimal-format/m-p/2320073#M90254</guid>
      <dc:creator>SMahadevan1608028474</dc:creator>
      <dc:date>2021-01-29T16:15:06Z</dc:date>
    </item>
  </channel>
</rss>

