# bool {#bool}

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

## Syntax {#syntax}

`bool(X)`

## Arguments {#arguments}

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

## Details {#details}

Convert the input to a Boolean value.

## Examples {#examples}

```
x=bool()
x;
// output: 00b

typestr x
// output: BOOL

bool(`true`false)
// output: [1,0]

bool(100.2)
// output: 1

bool(0)
// output: 0
```

