# RESET Reset Program State

> Source: https://manual.pvxplus.com/directives/reset

## Format

**RESET**

## Description

The **RESET** directive does the following:

|  |  |
| --- | --- |
| 1\. | Resets **PRECISION** to the default value of 2. |
| 2\. | Sets **ERR**, **RET** and **CTL** to zero. |
| 3\. | Clears **FOR**/**NEXT**, **GOSUB**/**RETURN** stack. |
| 4\. | Re-enables rounding mode. |

The **RESET** directive will reset **FLOATINGPOINT** to standard decimal notation, and if the system parameter **'RR'** is set, the system will also perform a reset on a **RUN** directive. *(added in PxPlus v4.20)*

Note:  
Use the POP \* directive to clear the complete GOSUB/FOR stack without changing the CTL and ERR values.

## See Also

[BEGIN Reset Files and Variables](https://manual.pvxplus.com/directives/begin)  
[CLEAR Reset Variables](https://manual.pvxplus.com/directives/clear)  
[START Restart Session](https://manual.pvxplus.com/directives/start)  
[RUN Transfer and Execute a Program](https://manual.pvxplus.com/directives/run)  
['RR' Reset on RUN](https://manual.pvxplus.com/parameters/rr)  
**[FLOATINGPOINT Switch to Scientific Notation](https://manual.pvxplus.com/directives/floatingpoint)**  
**[POP Premature Exit from Stack](https://manual.pvxplus.com/directives/pop)**
