<?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 Decimal in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-decimal/m-p/3094783#M734185</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;Use the following for rounding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : abc type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abc = round (&amp;lt;givennumber to be rounded&amp;gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLZ reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2007 03:53:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-20T03:53:54Z</dc:date>
    <item>
      <title>Rounding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-decimal/m-p/3094781#M734183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I'm ABAP beginner, how can i round the decimal number to an integer in ABAP report or SAPScript??  Which FM should i use??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 02:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-decimal/m-p/3094781#M734183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T02:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-decimal/m-p/3094782#M734184</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;Check this Sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA n TYPE p DECIMALS 2.&lt;/P&gt;&lt;P&gt;DATA m TYPE p DECIMALS 2 VALUE '-5.55'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n = abs( m ).   WRITE:   'ABS:  ', n.&lt;/P&gt;&lt;P&gt;n = sign( m ).  WRITE: / 'SIGN: ', n.&lt;/P&gt;&lt;P&gt;n = ceil( m ).  WRITE: / 'CEIL: ', n.&lt;/P&gt;&lt;P&gt;n = floor( m ). WRITE: / 'FLOOR:', n.&lt;/P&gt;&lt;P&gt;n = trunc( m ). WRITE: / 'TRUNC:', n.&lt;/P&gt;&lt;P&gt;n = frac( m ).  WRITE: / 'FRAC: ', n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;floating points&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: result TYPE f,&lt;/P&gt;&lt;P&gt;      pi(10) TYPE c VALUE '3.14159265'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result = cos( pi ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 02:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-decimal/m-p/3094782#M734184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T02:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-decimal/m-p/3094783#M734185</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;Use the following for rounding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : abc type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abc = round (&amp;lt;givennumber to be rounded&amp;gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLZ reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 03:53:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-decimal/m-p/3094783#M734185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T03:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-decimal/m-p/3094784#M734186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;Use the below code and it is so simple&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;data(lv_round) = round( val = '5678.65800341' dec = 0 ).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt; lv_round will be 5679&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;For 2 decimal places&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;data(lv_round) = round(&amp;nbsp; val = '5678.65800341' dec = 2&amp;nbsp; ).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;lv_round will be 5678.66&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;data(lv_round) = round(&amp;nbsp; val = '5678.65300341' dec = 2&amp;nbsp; ).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;lv_round will be 5678.65&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;For 5 decimals&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;data(lv_round) = round(&amp;nbsp; val = '5678.65800741' dec = 5 ).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;lv_round will be &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;5678.65801&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;data(lv_round) = round(&amp;nbsp; val = '5678.65800341' dec = 5 ).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;lv_round will be &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;5678.65800&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;Murugan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 11:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rounding-decimal/m-p/3094784#M734186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-10T11:00:41Z</dc:date>
    </item>
  </channel>
</rss>

