Sign [SIGN]

Returns +1, 0, or -1.

If the Number is positive, the result is +1.

If the Number is zero, the result is 0.

If the Number is negative, the result is -1.

Syntax

SIGN (Number)

Data Types of the Arguments

Integer, Number, Length, Area, Volume, Angle

Data Type of the Result

Number

Example

For a profile construction element with an editable Base Width offset parameter:

Determine if its Base Width value is positive or negative.

Expression

SIGN (Base Width)

Result

-1 for a negative Base Width

1 for a positive Base Width

0 for a Base Width of zero.

  • Was this Helpful ?
  • YesNo