# signum {#signum}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`signum(X)`

Alias: sign

## Arguments {#arguments}

**x** is a scalar/vector/matrix of numeric or Boolean value.

## Details {#details}

Return 1 if *X* is positive; 0 if *X* is 0; -1 if *X* is negative; NULL if *X* is null.

## Examples {#examples}

```
signum 1 0 -1 NULL;
// output: [1,0,-1, ]
```

