# sign({n})

Returns 1 if the numeric value, `{n}` is positive. It returns -1 if the `{n}` is negative, and 0 if `{n}` is 0. `{n}` can be any real number in the range of -1e308 <= `{n}` <= 1e308.

`SIGN(`{n}`)` takes the following syntax.

```nolang
SELECT SIGN(N) as ALIAS
FROM DATASET;
```

## Example

This example returns the `sign` of -12.

```nolang
SELECT SIGN(-12) as signValue
FROM "Opportunity"
LIMIT 1;
```

| signValue |
| --------- |
| -1        |
