<?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: Do decimal places matter when doing logical comparison/expression? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-decimal-places-matter-when-doing-logical-comparison-expression/m-p/12555397#M2007126</link>
    <description>&lt;P&gt;even with ' it works&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA montant TYPE kbetr.&lt;BR /&gt;&lt;BR /&gt;montant = 10 / 3.&lt;BR /&gt;IF montant GT '3.2'.&lt;BR /&gt;  WRITE 'Cassis'.&lt;BR /&gt;ENDIF.&lt;BR /&gt;IF montant LT '3.34'.&lt;BR /&gt;  WRITE 'Pomme'.&lt;BR /&gt;ELSE.&lt;BR /&gt;  WRITE 'Poire'.&lt;BR /&gt;ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Apr 2022 07:01:31 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2022-04-22T07:01:31Z</dc:date>
    <item>
      <title>Do decimal places matter when doing logical comparison/expression?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-decimal-places-matter-when-doing-logical-comparison-expression/m-p/12555393#M2007122</link>
      <description>&lt;P&gt;CODE# 1&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;IF GROSS_PRICE &amp;lt;&amp;gt; '0,00' AND NET_PRICE &amp;lt;&amp;gt; '0,00' .&lt;BR /&gt; "PRINT SOMETHING HERE"&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;CODE# 2&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;IF GROSS_PRICE &amp;lt;&amp;gt; '0' AND NET_PRICE &amp;lt;&amp;gt; '0' .&lt;BR /&gt; "PRINT SOMETHING HERE"&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Will these code have different results?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 05:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-decimal-places-matter-when-doing-logical-comparison-expression/m-p/12555393#M2007122</guid>
      <dc:creator>walkerist79</dc:creator>
      <dc:date>2022-04-22T05:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Do decimal places matter when doing logical comparison/expression?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-decimal-places-matter-when-doing-logical-comparison-expression/m-p/12555394#M2007123</link>
      <description>&lt;P&gt;SAP inside format for decimal is the dot, not the coma. Did you try with a beautiful dot ? &lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 05:58:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-decimal-places-matter-when-doing-logical-comparison-expression/m-p/12555394#M2007123</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-04-22T05:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Do decimal places matter when doing logical comparison/expression?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-decimal-places-matter-when-doing-logical-comparison-expression/m-p/12555395#M2007124</link>
      <description>&lt;P&gt;You are comparing characters, not numbers, so "decimal places" don't mean anything.&lt;/P&gt;&lt;P&gt;If gross_price and net_price have numeric data types, ABAP will convert characters into numbers before comparing, and expects a valid number inside the quotes, i.e. comma is invalid (see ABAP documentation).&lt;/P&gt;&lt;P&gt;Of course, if they have numeric data types, you should write:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF GROSS_PRICE &amp;lt;&amp;gt; 0 AND NET_PRICE &amp;lt;&amp;gt; 0.
 "PRINT SOMETHING HERE"&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Apr 2022 06:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-decimal-places-matter-when-doing-logical-comparison-expression/m-p/12555395#M2007124</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-04-22T06:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Do decimal places matter when doing logical comparison/expression?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-decimal-places-matter-when-doing-logical-comparison-expression/m-p/12555396#M2007125</link>
      <description>&lt;P&gt;Nice interview question by the way. I expect the interviewer to hear how comfortable you are with talking about ABAP concepts, not to give the "right answer".&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 06:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-decimal-places-matter-when-doing-logical-comparison-expression/m-p/12555396#M2007125</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-04-22T06:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Do decimal places matter when doing logical comparison/expression?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-decimal-places-matter-when-doing-logical-comparison-expression/m-p/12555397#M2007126</link>
      <description>&lt;P&gt;even with ' it works&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA montant TYPE kbetr.&lt;BR /&gt;&lt;BR /&gt;montant = 10 / 3.&lt;BR /&gt;IF montant GT '3.2'.&lt;BR /&gt;  WRITE 'Cassis'.&lt;BR /&gt;ENDIF.&lt;BR /&gt;IF montant LT '3.34'.&lt;BR /&gt;  WRITE 'Pomme'.&lt;BR /&gt;ELSE.&lt;BR /&gt;  WRITE 'Poire'.&lt;BR /&gt;ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Apr 2022 07:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-decimal-places-matter-when-doing-logical-comparison-expression/m-p/12555397#M2007126</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-04-22T07:01:31Z</dc:date>
    </item>
  </channel>
</rss>

