<?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: Mathematical Functionsu00A0 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947890#M390595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jhansikiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Functions for all numeric data types&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function&lt;/P&gt;&lt;P&gt; Result&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ABS&lt;/P&gt;&lt;P&gt; Absolute value of argument.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SIGN&lt;/P&gt;&lt;P&gt; Sign of argument:                      1 X &amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                              SIGN( X) = 0 if X = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                                               -1 X &amp;lt; 0&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CEIL&lt;/P&gt;&lt;P&gt; Smallest integer value not smaller than the argument.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FLOOR&lt;/P&gt;&lt;P&gt; Largest integer value not larger than the argument.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TRUNC&lt;/P&gt;&lt;P&gt; Integer part of argument.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FRAC&lt;/P&gt;&lt;P&gt; Fraction part of argument.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The argument of these functions does not have to be a numeric data type. If you choose another type, it is converted to a numeric type. For performance reasons, however, you should use the correct type whenever possible. The functions itself do not have a data type of their own. They do not change the numerical precision of a numerical operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;The output appears as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABS:              5.55&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN:             1.00-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CEIL:             5.00-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLOOR:            6.00-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRUNC:            5.00-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FRAC:             0.55-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T1(10),&lt;/P&gt;&lt;P&gt;T2(10) VALUE '-100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1 = ABS( T2 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE T1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This produces the following output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two conversions are performed. First, the contents of field T2 (type C) are converted to type P. Then the system processes the ABS function using the results of the conversion. Then, during the assignment to the type C field T1, the result of the function is converted back to type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. Mark if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Feb 2007 06:41:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-07T06:41:20Z</dc:date>
    <item>
      <title>Mathematical Functionsu00A0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947887#M390592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai all...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;can any one give me clear explanation of all the mathematical functions of numeric data types with an example.i.e for all the following&lt;/P&gt;&lt;P&gt;ABS&lt;/P&gt;&lt;P&gt;SIGN&lt;/P&gt;&lt;P&gt;CEIL&lt;/P&gt;&lt;P&gt;FLOOR&lt;/P&gt;&lt;P&gt;TRUNC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will be rewarded if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Jhansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947887#M390592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Functionsu00A0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947888#M390593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT demo_data_function .

* numeric datatypes

DATA n TYPE p DECIMALS 2.
DATA m TYPE p DECIMALS 2 VALUE '-5.55'.

n = abs( m ).   WRITE:   'ABS:  ', n.
n = sign( m ).  WRITE: / 'SIGN: ', n.
n = ceil( m ).  WRITE: / 'CEIL: ', n.
n = floor( m ). WRITE: / 'FLOOR:', n.
n = trunc( m ). WRITE: / 'TRUNC:', n.
n = frac( m ).  WRITE: / 'FRAC: ', n.

ULINE.

* floating points

DATA: result TYPE f,
      pi(10) TYPE c VALUE '3.14159265'.

result = cos( pi ).

WRITE result.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;Mathematical Functions      &amp;lt;/b&amp;gt;    &lt;/P&gt;&lt;P&gt;                                &lt;/P&gt;&lt;P&gt;ABS:               5.55         &lt;/P&gt;&lt;P&gt;SIGN:              1.00-        &lt;/P&gt;&lt;P&gt;CEIL:              5.00-        &lt;/P&gt;&lt;P&gt;FLOOR:             6.00-        &lt;/P&gt;&lt;P&gt;TRUNC:             5.00-        &lt;/P&gt;&lt;P&gt;FRAC:              0.55-        &lt;/P&gt;&lt;P&gt;                                &lt;/P&gt;&lt;P&gt; -1.0000000000000000E+00        &lt;/P&gt;&lt;P&gt;                                &lt;/P&gt;&lt;P&gt;Reward points. This is the code from ABAPDOCU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947888#M390593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Functionsu00A0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947889#M390594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope the above code solve ur problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947889#M390594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Functionsu00A0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947890#M390595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jhansikiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Functions for all numeric data types&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function&lt;/P&gt;&lt;P&gt; Result&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ABS&lt;/P&gt;&lt;P&gt; Absolute value of argument.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SIGN&lt;/P&gt;&lt;P&gt; Sign of argument:                      1 X &amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                              SIGN( X) = 0 if X = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                                               -1 X &amp;lt; 0&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CEIL&lt;/P&gt;&lt;P&gt; Smallest integer value not smaller than the argument.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FLOOR&lt;/P&gt;&lt;P&gt; Largest integer value not larger than the argument.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TRUNC&lt;/P&gt;&lt;P&gt; Integer part of argument.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FRAC&lt;/P&gt;&lt;P&gt; Fraction part of argument.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The argument of these functions does not have to be a numeric data type. If you choose another type, it is converted to a numeric type. For performance reasons, however, you should use the correct type whenever possible. The functions itself do not have a data type of their own. They do not change the numerical precision of a numerical operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;The output appears as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABS:              5.55&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN:             1.00-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CEIL:             5.00-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLOOR:            6.00-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRUNC:            5.00-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FRAC:             0.55-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T1(10),&lt;/P&gt;&lt;P&gt;T2(10) VALUE '-100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1 = ABS( T2 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE T1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This produces the following output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two conversions are performed. First, the contents of field T2 (type C) are converted to type P. Then the system processes the ABS function using the results of the conversion. Then, during the assignment to the type C field T1, the result of the function is converted back to type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. Mark if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:41:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947890#M390595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Functionsu00A0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947891#M390596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ABS: Return the absolute value of a number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABS(-1) = 1&lt;/P&gt;&lt;P&gt;ABS(2) = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN: Returns the sign of a number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN(-10) = -1&lt;/P&gt;&lt;P&gt;SIGN(100) = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CEIL: Returns the next highest integer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CEIL(2.5) = 3&lt;/P&gt;&lt;P&gt;CEIL(3.1) = 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLOOR: Returns the immediately lowest integer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLOOR(8.5) = 8&lt;/P&gt;&lt;P&gt;FLOOR(8.9) = 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRUNC: Returns the integer portion of the number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRUNC(6.3) = 6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947891#M390596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Functionsu00A0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947892#M390597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jhansi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;abs - Absolute value of argument.&lt;/P&gt;&lt;P&gt;sign - Prefix of the argument :   1                      x &amp;gt; 0&lt;/P&gt;&lt;P&gt;                                           SIGN( x ) =  0   if  x = 0&lt;/P&gt;&lt;P&gt;                                             -1                      x &amp;lt; 0&lt;/P&gt;&lt;P&gt;ceil - Smallest integer value not smaller than the argument.&lt;/P&gt;&lt;P&gt;floor - Largest integer value not larger than the argument.&lt;/P&gt;&lt;P&gt;trunc - Integer part of argument.&lt;/P&gt;&lt;P&gt;FRAC - Fraction part of argument.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Report zex33.&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 '-8.68'.&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;The output appears as follows:&lt;/P&gt;&lt;P&gt;ABS:              8.68&lt;/P&gt;&lt;P&gt;SIGN:             1.00-&lt;/P&gt;&lt;P&gt;CEIL:             8.00-&lt;/P&gt;&lt;P&gt;FLOOR:            9.00-&lt;/P&gt;&lt;P&gt;TRUNC:            8.00-&lt;/P&gt;&lt;P&gt;FRAC:             0.68-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947892#M390597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Functionsu00A0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947893#M390598</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;go thru this url:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3316358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3316358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947893#M390598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Functionsu00A0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947894#M390599</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;Function Result&lt;/P&gt;&lt;P&gt;ABS  Absolute value of argument.&lt;/P&gt;&lt;P&gt;SIGN  Sign of argument: 1 X &amp;gt; 0&lt;/P&gt;&lt;P&gt;SIGN( X) = 0 if X = 0&lt;/P&gt;&lt;P&gt;-1 X &amp;lt; 0&lt;/P&gt;&lt;P&gt;CEIL  Smallest integer value not smaller than the argument.&lt;/P&gt;&lt;P&gt;FLOOR  Largest integer value not larger than the argument.&lt;/P&gt;&lt;P&gt;TRUNC  Integer part of argument.&lt;/P&gt;&lt;P&gt;FRAC  Fraction part of argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The argument of these functions does not have to be a numeric data type. If you choose another&lt;/P&gt;&lt;P&gt;type, it is converted to a numeric type. For performance reasons, however, you should use the&lt;/P&gt;&lt;P&gt;correct type whenever possible. The functions itself do not have a data type of their own. They do&lt;/P&gt;&lt;P&gt;not change the numerical precision of a numerical operation.&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;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;The output appears as follows:&lt;/P&gt;&lt;P&gt;ABS: 5.55&lt;/P&gt;&lt;P&gt;SIGN: 1.00-&lt;/P&gt;&lt;P&gt;CEIL: 5.00-&lt;/P&gt;&lt;P&gt;FLOOR: 6.00-&lt;/P&gt;&lt;P&gt;TRUNC: 5.00-&lt;/P&gt;&lt;P&gt;FRAC: 0.55-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:42:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947894#M390599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Functionsu00A0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947895#M390600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai &lt;/P&gt;&lt;P&gt;judith.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for the reply,can u please tell me what is the ceil and floor of '-5'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:55:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947895#M390600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Functionsu00A0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947896#M390601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;CEIL:              5.00- &lt;/P&gt;&lt;P&gt;FLOOR:             5.00-&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can try this in ur program.&lt;/P&gt;&lt;P&gt;reward poinst and clso ethe thread if this solves.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 07:03:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mathematical-functionsu00a0/m-p/1947896#M390601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T07:03:33Z</dc:date>
    </item>
  </channel>
</rss>

