# _CP_rs_

_CP_rs converts a double floating point
number into a CPSTR. The precision of this function can be changed
using the _CP_precision function.

## Syntax

```
CPSTR * _CP_rs_(double number)
```

## Example(s)

```
/* Displays 1.123. */
CPSTR * s = _CP_rs_(1.123);
_CP_print(s);
```

## See also

- [C functions overview](https://d3codex.com/cfunctions/c-functions-overview/)
- [_CP_precision](https://d3codex.com/cfunctions/cp-precision/)
- [_CP_sr_](https://d3codex.com/cfunctions/cp-sr/)

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