<?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: Rounding off issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off-issue/m-p/7164560#M1516328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hie Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use a variable with of type p and here you can also maintain the number of decimal points yo require.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: xfield type p decimals 2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isaac Prince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Sep 2010 09:58:00 GMT</pubDate>
    <dc:creator>prince_isaac</dc:creator>
    <dc:date>2010-09-01T09:58:00Z</dc:date>
    <item>
      <title>Rounding off issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off-issue/m-p/7164557#M1516325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my program there is a stage where i am dividing an amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: var_per type f.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var_per = 1 / 50,00,000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the variable var_per will be declared as data type f, so taht it can hold even smallest value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the requirement is to round off the variable 'var_per'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value in var_per purely based on the denominator. At sometime, it may be 50,00,000 or even more.&lt;/P&gt;&lt;P&gt;As the denominator increase, the decimal value in var_per increases...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While rounding off, i should take care that, the rounded off figure should not become zero, due to high decimal value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to handle such scenario..???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Please search for available information before posting. Thread locked. Points Unassigned&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kishan P on Sep 1, 2010 3:53 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 09:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off-issue/m-p/7164557#M1516325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T09:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding off issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off-issue/m-p/7164558#M1516326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Declare a variable as :&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;     data : p_decimal(16) type p decimals 14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     p_decimal = 1 / 5000000. &amp;lt;-- this will round off and will not return zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 09:46:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off-issue/m-p/7164558#M1516326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T09:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding off issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off-issue/m-p/7164559#M1516327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;define data type P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 09:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off-issue/m-p/7164559#M1516327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T09:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding off issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off-issue/m-p/7164560#M1516328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hie Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use a variable with of type p and here you can also maintain the number of decimal points yo require.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: xfield type p decimals 2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isaac Prince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 09:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off-issue/m-p/7164560#M1516328</guid>
      <dc:creator>prince_isaac</dc:creator>
      <dc:date>2010-09-01T09:58:00Z</dc:date>
    </item>
  </channel>
</rss>

