<?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>question Re: removing scientific notation after divison in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/removing-scientific-notation-after-divison/m-p/338399#M232819</link>
    <description>&lt;P&gt;Thanks for the update Steven. I had gone through those article before.&amp;nbsp; Here I am using and update attribute which contains number for variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="update attribute with multiple attributes" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33927iD4A0A30F8B649439/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GrossProduct-updateAttribute.PNG" alt="update attribute with multiple attributes" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;update attribute with multiple attributes&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After this flow i am receiving the output as&amp;nbsp; GROSSDEPTH =&lt;STRONG&gt;1.0E-4&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So the question is execute script will work in this scenario? Please suggest.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 00:01:10 GMT</pubDate>
    <dc:creator>kumsath</dc:creator>
    <dc:date>2022-03-11T00:01:10Z</dc:date>
    <item>
      <title>removing scientific notation after divison</title>
      <link>https://community.cloudera.com/t5/Support-Questions/removing-scientific-notation-after-divison/m-p/338295#M232794</link>
      <description>&lt;P&gt;I am using the below NIFI EXPRESSION in the update attribute&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GrossProducFormula.PNG" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33916iE7B67553CE8AE4C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GrossProducFormula.PNG" alt="GrossProducFormula.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works fine, but after division getting scientific notation, say for an example if the&amp;nbsp;&lt;/P&gt;&lt;DIV class="attribute-name"&gt;GROSSDEPTH = 0.010000, then&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="attribute-name"&gt;the expression output is coming as :&amp;nbsp;&lt;DIV class="attribute-name"&gt;GROSSDEPTH&lt;/DIV&gt;&lt;DIV class="attribute-value"&gt;&lt;STRONG&gt;1.0E-4&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="modified-attribute-value"&gt;how to remove this scientific notation. Please help&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GrossProductDepthValue.PNG" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33915iFD3F9A34069357F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GrossProductDepthValue.PNG" alt="GrossProductDepthValue.PNG" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Mar 2022 08:57:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/removing-scientific-notation-after-divison/m-p/338295#M232794</guid>
      <dc:creator>kumsath</dc:creator>
      <dc:date>2022-03-10T08:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: removing scientific notation after divison</title>
      <link>https://community.cloudera.com/t5/Support-Questions/removing-scientific-notation-after-divison/m-p/338392#M232815</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96209"&gt;@kumsath&lt;/a&gt;&amp;nbsp;This may not be the best way, but check out this solution here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/How-correct-convert-from-Decimal-with-E-to-float-in-Apache/m-p/236511" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/How-correct-convert-from-Decimal-with-E-to-float-in-Apache/m-p/236511&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 18:47:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/removing-scientific-notation-after-divison/m-p/338392#M232815</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2022-03-10T18:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: removing scientific notation after divison</title>
      <link>https://community.cloudera.com/t5/Support-Questions/removing-scientific-notation-after-divison/m-p/338399#M232819</link>
      <description>&lt;P&gt;Thanks for the update Steven. I had gone through those article before.&amp;nbsp; Here I am using and update attribute which contains number for variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="update attribute with multiple attributes" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33927iD4A0A30F8B649439/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GrossProduct-updateAttribute.PNG" alt="update attribute with multiple attributes" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;update attribute with multiple attributes&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After this flow i am receiving the output as&amp;nbsp; GROSSDEPTH =&lt;STRONG&gt;1.0E-4&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So the question is execute script will work in this scenario? Please suggest.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 00:01:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/removing-scientific-notation-after-divison/m-p/338399#M232819</guid>
      <dc:creator>kumsath</dc:creator>
      <dc:date>2022-03-11T00:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: removing scientific notation after divison</title>
      <link>https://community.cloudera.com/t5/Support-Questions/removing-scientific-notation-after-divison/m-p/338472#M232834</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96209"&gt;@kumsath&lt;/a&gt;&amp;nbsp;Yes, when i saw your post I started digging around too.&amp;nbsp; The issue here is number manipulation and type casting a "number" versus a "string". That easy gets complicated in attributes and with nifi expression language functions.&amp;nbsp; &amp;nbsp;The solution i referenced would take the "number" and make a number in which the visual representation should then be correct.&amp;nbsp; Its worth a try since that execute script should be very easy to test.&amp;nbsp; &amp;nbsp; The alternative is to do your "math" upstream or in an execute script processor not in updateattribute.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 13:24:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/removing-scientific-notation-after-divison/m-p/338472#M232834</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2022-03-11T13:24:15Z</dc:date>
    </item>
  </channel>
</rss>

