<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/2871535#M673737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Check the MATHS function CEIL or FLOOR&lt;/P&gt;&lt;P&gt;following maths functionas are there in SAP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abs -Absolute value of the argument arg &lt;/P&gt;&lt;P&gt;sign- Plus/minus sign of the argument arg: -1, if the value of arg is negative; 0 if the value of arg is 0; 1 if the value of arg is positive. &lt;/P&gt;&lt;P&gt;ceil -Smallest integer number that is not smaller than the value of the argument arg. &lt;/P&gt;&lt;P&gt;floor- Largest integer number that is not larger than the value of the argument arg. &lt;/P&gt;&lt;P&gt;trunc- Value of the integer part of the argument arg &lt;/P&gt;&lt;P&gt;frac- Value of the decimal places of the argument arg &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2007 13:54:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-19T13:54:07Z</dc:date>
    <item>
      <title>Rounding Off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/2871533#M673735</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;I need to round off some value. For eg. if the value is .123456(Six Decimal Places) ; answer should be 0.12346(Five Deci Places). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is there any standard Function module to achieve the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Jigar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 13:51:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/2871533#M673735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T13:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding Off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/2871534#M673736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the FM &amp;lt;b&amp;gt;ROUND&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 13:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/2871534#M673736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T13:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding Off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/2871535#M673737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Check the MATHS function CEIL or FLOOR&lt;/P&gt;&lt;P&gt;following maths functionas are there in SAP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abs -Absolute value of the argument arg &lt;/P&gt;&lt;P&gt;sign- Plus/minus sign of the argument arg: -1, if the value of arg is negative; 0 if the value of arg is 0; 1 if the value of arg is positive. &lt;/P&gt;&lt;P&gt;ceil -Smallest integer number that is not smaller than the value of the argument arg. &lt;/P&gt;&lt;P&gt;floor- Largest integer number that is not larger than the value of the argument arg. &lt;/P&gt;&lt;P&gt;trunc- Value of the integer part of the argument arg &lt;/P&gt;&lt;P&gt;frac- Value of the decimal places of the argument arg &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 13:54:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/2871535#M673737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T13:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding Off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/2871536#M673738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;write field to charvar decimals 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*declare a charecter type variable and move the field to that variable in above way....&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 13:54:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/2871536#M673738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T13:54: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/2871537#M673739</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 try these FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FI_ROUND_AMOUNT&lt;/P&gt;&lt;P&gt;ROUND &lt;/P&gt;&lt;P&gt;ROUND_AMOUNT&lt;/P&gt;&lt;P&gt;HR_NZ_ROUNDING_DECIMALS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 13:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/2871537#M673739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T13:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding Off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/2871538#M673740</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;THanks a lot for your quick response. &lt;/P&gt;&lt;P&gt;But as per my requirement; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a char data type with lenght 16 in which last seven digits are to considered as if they are after decimal point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg. value is : 0000000000011173 ; then First nine charaters 000000000 are before decimal point and last seven characters 0011173 are after decimal point. So I would like to have answer as 000000000.00112. i.e we need to round of the given value such a way that only 5 digits are there after decimal point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 12:00:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/2871538#M673740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T12:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding Off</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/2871539#M673741</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;Try with this:&lt;/P&gt;&lt;P&gt;DATA pack TYPE p VALUE '123.456'&lt;/P&gt;&lt;P&gt;DECIMALS 3.&lt;/P&gt;&lt;P&gt;WRITE pack DECIMALS 2.&lt;/P&gt;&lt;P&gt;WRITE: / pack ROUND -2,&lt;/P&gt;&lt;P&gt;/ pack ROUND -1,&lt;/P&gt;&lt;P&gt;/ pack ROUND 1,&lt;/P&gt;&lt;P&gt;/ pack ROUND 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 12:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-off/m-p/2871539#M673741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T12:20:32Z</dc:date>
    </item>
  </channel>
</rss>

