<?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 during amount calculation how to stop rounding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/during-amount-calculation-how-to-stop-rounding/m-p/6627183#M1441344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Freinds,&lt;/P&gt;&lt;P&gt;  i have an amount as 121.539 , now whenf i divided by 10 it is becoming rounding to 12.154 automatically. This is not acceptable during the testing they have said it has to 12.153 only . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data type of amount is 3 decimals type. Could any one let me know how can i stop rounding and get exactly as 12.153 only&lt;/P&gt;&lt;P&gt;instead of 12.154.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2010 02:07:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-22T02:07:24Z</dc:date>
    <item>
      <title>during amount calculation how to stop rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/during-amount-calculation-how-to-stop-rounding/m-p/6627183#M1441344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Freinds,&lt;/P&gt;&lt;P&gt;  i have an amount as 121.539 , now whenf i divided by 10 it is becoming rounding to 12.154 automatically. This is not acceptable during the testing they have said it has to 12.153 only . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data type of amount is 3 decimals type. Could any one let me know how can i stop rounding and get exactly as 12.153 only&lt;/P&gt;&lt;P&gt;instead of 12.154.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 02:07:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/during-amount-calculation-how-to-stop-rounding/m-p/6627183#M1441344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-22T02:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: during amount calculation how to stop rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/during-amount-calculation-how-to-stop-rounding/m-p/6627184#M1441345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Ravi,
&amp;lt;li&amp;gt;Try this way. 
&lt;PRE&gt;&lt;CODE&gt;REPORT ztest_notepad.

DATA:value1 TYPE p DECIMALS 3 VALUE '121.539'.
DATA:value2 TYPE c LENGTH 20.
DATA:len    TYPE i.

value2 = value1 / 10.
CONDENSE value2.
len = STRLEN( value2 ).
len = len - 5.
value2+len(5) = value2+len(4).
WRITE value2.&lt;/CODE&gt;&lt;/PRE&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 02:44:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/during-amount-calculation-how-to-stop-rounding/m-p/6627184#M1441345</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2010-02-22T02:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: during amount calculation how to stop rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/during-amount-calculation-how-to-stop-rounding/m-p/6627185#M1441346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Venkat,&lt;/P&gt;&lt;P&gt;          Thanks allot it surved the purpose of problem, but i have one question can you explain me what exactly 5 means in the logic&lt;/P&gt;&lt;P&gt;len = len - 5.&lt;/P&gt;&lt;P&gt;i.e why you have taken 5 and specific reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is only point i dint understood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regard&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 02:57:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/during-amount-calculation-how-to-stop-rounding/m-p/6627185#M1441346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-22T02:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: during amount calculation how to stop rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/during-amount-calculation-how-to-stop-rounding/m-p/6627186#M1441347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Madhu, 
&amp;lt;li&amp;gt; 4 decimal places and decimal point. After dividing, you will get 4 decimal places right.

Thanks,
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 03:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/during-amount-calculation-how-to-stop-rounding/m-p/6627186#M1441347</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2010-02-22T03:11:56Z</dc:date>
    </item>
  </channel>
</rss>

