# _CP_dtx

_CP_dtx is equivalent to the `*result* = dtx(*expression*)` BASIC statement.

## Syntax

```
int _CP_dtx(CPSTR** result, double expression)
```

## Description

This function returns -1 if
an error occurs. The error code is contained in _CP_errno.

## Example(s)

```
/* Prints "F". */

CPSTR * s = _CP_str_null;

_CP_dtx(&s,15.0);
_CP_print(s);
```

## See also

- [C functions overview](https://d3codex.com/cfunctions/c-functions-overview/)
- [_CP_xtd](https://d3codex.com/cfunctions/cp-xtd/)

---
Source: https://d3codex.com/cfunctions/cp-dtx/ - part of the D3Codex reference.
