Free cookie consent management tool by TermsFeed

sign() Function

Function

sign( number )

Returns the number divided by its absolute value, which is 1 if the number is positive and -1 if the number is negative.

Parameters

Keyword Type Description

number

Decimal

The number that will be divided by its absolute value.

Returns

Integer

Usage considerations

If the number value is equal to zero, the function returns 1.

Examples

sign(-3) returns -1

Feature compatibility

The table below lists this function's compatibility with various features in Appian.
Feature Compatibility Note
Portals Compatible
Offline Mobile Compatible
Sync-Time Custom Record Fields Compatible

Can be used to create a custom record field that only evaluates at sync time.

Real-Time Custom Record Fields Incompatible

Custom record fields that evaluate in real time must be configured using one or more Custom Field functions.

Process Reports Compatible
Process Events Compatible
Process Autoscaling Compatible

Feedback