# long {#long}

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

## Syntax {#syntax}

`long(X)`

## Arguments {#arguments}

**X** can be of any data type.

## Details {#details}

Convert the data type of *X* to LONG.

## Examples {#examples}

```
x=long();
x;
// output: 00l

typestr x;
// output: LONG

long(`10.9);
// output: 10

long(9223372036854775807l);
// output: 9223372036854775807

long(9223372036854775808l);
// output: 9223372036854775807
// maximum value for a LONG is 2^63-1=9223372036854775807
```

