<?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 Rounding off in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748060#M324381</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;I am making some division as follows.&lt;/P&gt;&lt;P&gt;data: a type p decimals 2,&lt;/P&gt;&lt;P&gt;        b(2)  type c,&lt;/P&gt;&lt;P&gt;a =  ( 62 / 13 ).&lt;/P&gt;&lt;P&gt;write a decimals 0 to b.&lt;/P&gt;&lt;P&gt;b = b + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It returns the value 4.77 to a&lt;/P&gt;&lt;P&gt;while adding it gets rounded off to 5 and then further addition is done.&lt;/P&gt;&lt;P&gt;But as per my requirement, I want only the value 4 irrespective of decimals i.e. the result without rounded off .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. help me.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jan 2007 08:30:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-02T08:30:33Z</dc:date>
    <item>
      <title>Rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748060#M324381</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;I am making some division as follows.&lt;/P&gt;&lt;P&gt;data: a type p decimals 2,&lt;/P&gt;&lt;P&gt;        b(2)  type c,&lt;/P&gt;&lt;P&gt;a =  ( 62 / 13 ).&lt;/P&gt;&lt;P&gt;write a decimals 0 to b.&lt;/P&gt;&lt;P&gt;b = b + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It returns the value 4.77 to a&lt;/P&gt;&lt;P&gt;while adding it gets rounded off to 5 and then further addition is done.&lt;/P&gt;&lt;P&gt;But as per my requirement, I want only the value 4 irrespective of decimals i.e. the result without rounded off .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. help me.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 08:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748060#M324381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T08:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748061#M324382</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;data: a type p decimals 2,&lt;/P&gt;&lt;P&gt;b(2) type c,&lt;/P&gt;&lt;P&gt;a = ( 62 / 13 ).&lt;/P&gt;&lt;P&gt;a = trunc( a ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 08:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748061#M324382</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-01-02T08:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748062#M324383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shravani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can go with statement called FLOOR , It will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward point if it is helpful&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 08:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748062#M324383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T08:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748063#M324384</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;please use a= (62 DIV 14) to receive the value.&lt;/P&gt;&lt;P&gt;See transaction abapterm search word DIV for further details.&lt;/P&gt;&lt;P&gt;DIV is an arithmetic operand in sap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ute&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 08:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748063#M324384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T08:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748064#M324385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; U can use &amp;lt;b&amp;gt;floor&amp;lt;/b&amp;gt; function as given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLOOR( X ) :&lt;/P&gt;&lt;P&gt;Largest integer value that is not greater than x &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: a type p decimals 2,&lt;/P&gt;&lt;P&gt;b(2) type c.&lt;/P&gt;&lt;P&gt;a = ( 62 / 13 ).&lt;/P&gt;&lt;P&gt;b = floor( a ).&lt;/P&gt;&lt;P&gt;write b.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 08:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748064#M324385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T08:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748065#M324386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shravani , &lt;/P&gt;&lt;P&gt;  Use the command FLOOR.&lt;/P&gt;&lt;P&gt;Here is the modified code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: a type p decimals 2,
b(2) type c.
a = ( 62 / 13 ).
a = FLOOR( a ).  " Code Added
write a decimals 0 to b.
b = b + 1.

write: b.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assign Points for helpful reply&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 08:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748065#M324386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T08:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748066#M324387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use as ur requerment for rounding..&lt;/P&gt;&lt;P&gt;check this example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: I TYPE I, &lt;/P&gt;&lt;P&gt;P TYPE P DECIMALS 2, &lt;/P&gt;&lt;P&gt;M TYPE F VALUE '-3.5', &lt;/P&gt;&lt;P&gt;D TYPE P DECIMALS 1. &lt;/P&gt;&lt;P&gt;P = ABS( M ). " 3,5 &lt;/P&gt;&lt;P&gt;I = P. " 4 - business rounding &lt;/P&gt;&lt;P&gt;I = M. " -4 &lt;/P&gt;&lt;P&gt;I = CEIL( P ). " 4 - next largest whole number &lt;/P&gt;&lt;P&gt;I = CEIL( M ). " -3 &lt;/P&gt;&lt;P&gt;I = FLOOR( P ). " 3 - next smallest whole number &lt;/P&gt;&lt;P&gt;I = FLOOR( M ). " -4 &lt;/P&gt;&lt;P&gt;I = TRUNC( P ). " 3 - integer part &lt;/P&gt;&lt;P&gt;I = TRUNC( M ). " -3 &lt;/P&gt;&lt;P&gt;D = FRAC( P ). " 0.5 - decimal part &lt;/P&gt;&lt;P&gt;D = FRAC( M ). " -0.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 08:37:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748066#M324387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T08:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748067#M324388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shrawani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see below code.&lt;/P&gt;&lt;P&gt;DATA: a TYPE p DECIMALS 2,&lt;/P&gt;&lt;P&gt;b(2) TYPE c.&lt;/P&gt;&lt;P&gt;a = ( 62 / 13 ).&lt;/P&gt;&lt;P&gt;a = TRUNC( a ).&lt;/P&gt;&lt;P&gt;WRITE a DECIMALS 0 TO b.&lt;/P&gt;&lt;P&gt;b = b + 1.&lt;/P&gt;&lt;P&gt;it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 08:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748067#M324388</guid>
      <dc:creator>former_member508729</dc:creator>
      <dc:date>2007-01-02T08:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748068#M324389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the fn FLOOR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data i type i.&lt;/P&gt;&lt;P&gt;data p type p decimals 2 value '3.7'.&lt;/P&gt;&lt;P&gt;compute i = FLOOR( p ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i contains 3 now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 08:41:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748068#M324389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T08:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748069#M324390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You Very Much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 08:45:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/1748069#M324390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T08:45:57Z</dc:date>
    </item>
  </channel>
</rss>

