SIGN

Represents the SQLite SIGN() function, which returns the sign of a numeric value.

The function returns:

  • -1 if the input is negative.

  • 0 if the input is zero.

  • 1 if the input is positive.

  • null if the input is null.

The result is always an integer.

Return

A KQLiteColumn of type Int representing the sign of the input.

Author

MOHAMMAD AZIM ANSARI

Parameters

x

The column containing the numeric value.

See also