Crystal Reports for Eclipse Designer Guide

Abs (x)

Description
Returns the absolute value of x.
Arguments
  • x is the Number or Currency for which you want the Absolute Value returned.
  • Returns
    Number value
    Action
    Abs (x) returns the absolute value of x.
    Examples
    Abs(1.50)
    Returns 1.50.
    Abs(-1.50)
    Returns 1.50.
    Abs(10 - 7)
    Returns 3.
    Abs(7 - 10)
    Returns 3.
    If Abs(37 - {file.FIELD}) > 1 Then
         "Maintenance, Temperature Check"
    Else
         "" ;
    This example flags instances where a laboratory heat block has a temperature variation greater than plus or minus 1 degree C.



    SAP BusinessObjects
    http://www.sap.com/sapbusinessobjects/
    Support services
    http://service.sap.com/bosap-support/
    Product Documentation on the Web
    http://help.sap.com/