Spread.NET 18 Formula Reference
Formula Functions / Functions R to S / SIGN
In This Topic
    SIGN
    In This Topic

    This function returns the sign of a number or expression.

    Syntax

    SIGN(cellreference)

    SIGN(value)

    SIGN(expression)

    Arguments

    Specify a cell reference, a numeric or text value, or an expression for the argument.

    Remarks

    Returns 1 if the number is positive, 0 if the number is 0, and –1 if the number is negative.

    Data Types

    Accepts numeric data. Returns numeric data.

    Examples

    SIGN(B3)

    SIGN(R1C2)

    SIGN(-5) gives the result -1

    SIGN(15-8) gives the result 1

    Version Available

    This function is available in product version 1.0 or later.

    See Also

    ABS | Math and Trigonometry Functions