<?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: Reduce the decimal placess without rounding.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reduce-the-decimal-placess-without-rounding/m-p/7249990#M1527446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: f1 type p decimals 5,
      f2 type p decimals 2,
      f3 type i.


f1 = '12.54821'.
f3 = trunc( f1 * 100 ).
f2 = f3 / 100.

write: / f1, f3, f2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Oct 2010 10:13:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-01T10:13:51Z</dc:date>
    <item>
      <title>Reduce the decimal placess without rounding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reduce-the-decimal-placess-without-rounding/m-p/7249989#M1527445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       i have an issue like ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i am using i am multiplifying DEC with CURR values in to CURR field with more then 2 decimal placess,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but i want update with 2 decimal placess, here the prob is if i take 2 decimal vanles it is rounding.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but i dont want rounding decimal.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ex: my value is like:  lv_amt = 5.3578.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;after taking with 2 decimals i am getting like : 5.36.  but i want like 5.35.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i searched in sdn but i dint get proper result.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;how to get this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance..&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;SS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 10:00:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reduce-the-decimal-placess-without-rounding/m-p/7249989#M1527445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-01T10:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the decimal placess without rounding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reduce-the-decimal-placess-without-rounding/m-p/7249990#M1527446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: f1 type p decimals 5,
      f2 type p decimals 2,
      f3 type i.


f1 = '12.54821'.
f3 = trunc( f1 * 100 ).
f2 = f3 / 100.

write: / f1, f3, f2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 10:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reduce-the-decimal-placess-without-rounding/m-p/7249990#M1527446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-01T10:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the decimal placess without rounding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reduce-the-decimal-placess-without-rounding/m-p/7249991#M1527447</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;&lt;/P&gt;&lt;P&gt;First convert that value type to character, and then using WRITE TO statement you can move value to another one.&lt;/P&gt;&lt;P&gt;if you need not to do any manipulations further&lt;/P&gt;&lt;P&gt;because  character types can not be manipulated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare another  temporary valiable and then substract to 2 decimals, my suggestion is remove value from 2 dig from last.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 10:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reduce-the-decimal-placess-without-rounding/m-p/7249991#M1527447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-01T10:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce the decimal placess without rounding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reduce-the-decimal-placess-without-rounding/m-p/7249992#M1527448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thank u very much...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 10:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reduce-the-decimal-placess-without-rounding/m-p/7249992#M1527448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-01T10:29:53Z</dc:date>
    </item>
  </channel>
</rss>

