Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

ABS()

Return the absolute value of a number.
---------------------------------------------------------------------------------

 Syntax

        ABS(<nNumber>) --> <nAbsNumber>  

 Arguments

        <nNumber>   Any number.    

 Returns

        <nAbsNumber>   The absolute numeric value.    

 Description

      This function yields the absolute value of the numeric value or
      expression <nNumber>.

 Examples

      Proc Main()

      Local nNumber:=50
      Local nNumber1:=27
      cls

      qout(nNumber-nNumber1)
      qout(nNumber1-nNumber)
      qout(ABS(nNumber-nNumber1))
      qout(ABSnNumber1-nNumber))
      qout(ABS( -1 * 345))
  

Status

      Ready

 Compliance

      This function is CA-Clipper compliant.

 Platforms

      All

 Files

      Library is rtl



See Also: EXP()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson