# 'AC' Auto-Convert Values to STR( ) or NUM( )

> Source: https://manual.pvxplus.com/parameters/ac

## Description

When the **'AC'** parameter is enabled, if the system detects a numeric value when it is expecting a string value (or vice-versa), it will automatically convert this value to a **STR( )** or **NUM( )** function.

Note:  
As this functionality is done automatically by the \*compiler rather than at run-time, programs created with this option *enabled* will be fully compatible with prior releases.

*(The 'AC' system parameter was added in PxPlus 2017.)*

## Default

***Off***

## See Also

**[STR( ) Convert Numeric to String](https://manual.pvxplus.com/functions/str)**  
**[NUM( ) Convert String to Value](https://manual.pvxplus.com/functions/num)**  
**[Command Line Compiler/Lister](https://manual.pvxplus.com/pxplus-installation-and-configuration/launching-pxplus/overview#compiler)**

## Example

```
10 msgbox "Client owes "+cst_owes+" and is past due by "+cst_late+" days"
list 10
0010 msgbox "Client owes "+str(cst_owes)+" and is past due by "+str(cst_late)+" days"
```
