<?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 Round up nullable Double in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Round-up-nullable-Double/m-p/2291590#M64758</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I extract my data in type String and I need to store them in database as numeric. The data contains decimal numbers and NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For decimal numbers, I need to round up the values to the nearest integer. For example, 4.3145 will be 4 and for NULL i need it to show as NULL in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use Math.Round() function in tMap as below but it throws an error -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009ShNMAA0.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137544iF94C0774391EAF4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009ShNMAA0.jpg" alt="0693p000009ShNMAA0.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009ShNvAAK.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132901i2E9B377B6D99AE2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009ShNvAAK.jpg" alt="0693p000009ShNvAAK.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched and found out that Math.Round() won't work for a nullable Double &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a way that i can round up the decimal numbers and also load the NULL values in database?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:29:34 GMT</pubDate>
    <dc:creator>SR2210</dc:creator>
    <dc:date>2024-11-16T01:29:34Z</dc:date>
    <item>
      <title>Round up nullable Double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Round-up-nullable-Double/m-p/2291590#M64758</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I extract my data in type String and I need to store them in database as numeric. The data contains decimal numbers and NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For decimal numbers, I need to round up the values to the nearest integer. For example, 4.3145 will be 4 and for NULL i need it to show as NULL in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use Math.Round() function in tMap as below but it throws an error -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009ShNMAA0.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137544iF94C0774391EAF4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009ShNMAA0.jpg" alt="0693p000009ShNMAA0.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009ShNvAAK.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132901i2E9B377B6D99AE2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009ShNvAAK.jpg" alt="0693p000009ShNvAAK.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched and found out that Math.Round() won't work for a nullable Double &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a way that i can round up the decimal numbers and also load the NULL values in database?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Round-up-nullable-Double/m-p/2291590#M64758</guid>
      <dc:creator>SR2210</dc:creator>
      <dc:date>2024-11-16T01:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Round up nullable Double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Round-up-nullable-Double/m-p/2291591#M64759</link>
      <description>&lt;P&gt;@Syaheerah Radzi​&amp;nbsp;,check the below link. you need to write tjava&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://www.tutorialspoint.com/java/lang/math_round_double.htm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 08:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Round-up-nullable-Double/m-p/2291591#M64759</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-09-11T08:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Round up nullable Double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Round-up-nullable-Double/m-p/2291592#M64760</link>
      <description>&lt;P&gt;Hi &amp;nbsp;&lt;A href="https://community.talend.com/s/profile/0053p000007LQSDAA4" alt="https://community.talend.com/s/profile/0053p000007LQSDAA4" target="_blank"&gt;SR2210&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You could achieve this even by using tConverttype component, please go through below link:&lt;/P&gt;&lt;P&gt;https://help.talend.com/reader/mjoDghHoMPI0yuyZ83a13Q/7wzgYBYjU0kmyizKfM_7Gw&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 05:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Round-up-nullable-Double/m-p/2291592#M64760</guid>
      <dc:creator>vikramk</dc:creator>
      <dc:date>2020-09-18T05:55:12Z</dc:date>
    </item>
  </channel>
</rss>

