<?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: Doubt in type p in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405209#M1047014</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 think this is due to your decimal precision&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you define data like this:  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:   num type p decimals 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;of course you will get only 3 decimals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if you want to get more decimals, you should increase the decimal precision.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2008 04:48:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-21T04:48:58Z</dc:date>
    <item>
      <title>Doubt in type p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405201#M1047006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;I have declared the variable as &lt;/P&gt;&lt;P&gt;Data betrg type p decimal 3.&lt;/P&gt;&lt;P&gt;But for this it is showing the wrong ouput&lt;/P&gt;&lt;P&gt;e.g:-&lt;/P&gt;&lt;P&gt;1/30 = 0.033333333333&lt;/P&gt;&lt;P&gt;but it is taking only 0.033&lt;/P&gt;&lt;P&gt;so afer multipication value is decresing from the orginl value&lt;/P&gt;&lt;P&gt;similaily &lt;/P&gt;&lt;P&gt;8/30 = 0.26666666666666666&lt;/P&gt;&lt;P&gt;but it is taking as .267&lt;/P&gt;&lt;P&gt;and i m not getting the actual value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What type of declaration I will do to get the actual value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ansuman Parhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 12:55:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405201#M1047006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T12:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in type p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405202#M1047007</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;This is because you have declare a variable with the P DECIMALS 3 meaning it will only accept 3 decimal places. try changing the data type to P DECIMALS 11 to be able to achieve your desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 13:00:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405202#M1047007</guid>
      <dc:creator>peter_ruiz2</dc:creator>
      <dc:date>2008-08-20T13:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in type p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405203#M1047008</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 write in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data xyz type p decimal 8 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it will take upto 8 decimal places .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 13:03:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405203#M1047008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T13:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in type p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405204#M1047009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;since ur specifying the decimal precision , it is rounding of to your req no of decimals.if you want to have more precision , increase the no of decimals and do a offset moving to another variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 13:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405204#M1047009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T13:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in type p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405205#M1047010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ansuman,&lt;/P&gt;&lt;P&gt;As others told increase the number of decimals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other thing i understand from ur query is why &lt;/P&gt;&lt;P&gt;0.033333333333 as 0.033 and 0.26666666666666666 as 0.027.&lt;/P&gt;&lt;P&gt;This is because of rounding is happening. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here 6666 is GT 5 that is why rounding to 7&lt;/P&gt;&lt;P&gt;3333 is LT 5 so rounding to 3 itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 13:37:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405205#M1047010</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-08-20T13:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in type p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405206#M1047011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if I am increasing the decimal place it is not giving me the actual value.&lt;/P&gt;&lt;P&gt;I have increased it to 11 places and still it is giving me 214.999 and for other cases it is giving me 1064.666666.But my desired outpu must be 215 and 1064.67.&lt;/P&gt;&lt;P&gt;So is there any other way for getting the actual value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ansuman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 04:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405206#M1047011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T04:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in type p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405207#M1047012</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;U can use ROUND function for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 04:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405207#M1047012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T04:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in type p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405208#M1047013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;from you post i understand that you req a precision of 2 decimals.&lt;/P&gt;&lt;P&gt;like if it is 214.9999 you want it as 215.00 and it it is 1064.66666 you want it to be 1064.67.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So specify the length as 2 instead of 3 for p data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 04:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405208#M1047013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T04:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in type p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405209#M1047014</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 think this is due to your decimal precision&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you define data like this:  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:   num type p decimals 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;of course you will get only 3 decimals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if you want to get more decimals, you should increase the decimal precision.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 04:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405209#M1047014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T04:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in type p</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405210#M1047015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anshumaan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as u told that ur query is giving wrong output. it is due to the declaration part where u are declaring the data type as BETRG TYPE P DECIMAL 3. since u have put 3 after DECIMAL so it will give the value upto 3 decimal places with rounding off the last digit. So if u want to increase the accuracy u will have to do like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BETRG TYPE P DECIMAL 10 as much places u want upto but still it will round off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 06:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-type-p/m-p/4405210#M1047015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T06:04:11Z</dc:date>
    </item>
  </channel>
</rss>

