# 'RN'= Rounding Control

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

## Description

Controls when and how rounding will occur. The valid values for **'RN'** below are additive:

|  |  |
| --- | --- |
| 1 | Only applies to LET assignments |
| 2 | On any Add, Subtract |
| 4 | On any Multiply, Divide, Power, or Modulus |
| 8 | On any math function (i.e. **[SIN( )](https://manual.pvxplus.com/functions/sin)**, **[COS( )](https://manual.pvxplus.com/functions/cos)**, **[LOG( )](https://manual.pvxplus.com/functions/log)**, etc.) |
| 64 | On all intermediate values in an expression |
| 128 | Before any numeric data is written to file |
| 256 | At the end of any expression |
| 512 | Before all numeric compares |

## Default

**'RN'=1** (Only applies to LET assignments)

## See Also

**['NR' No Intermediate Rounding on Division](https://manual.pvxplus.com/parameters/nr)**  
**['RS' Round STR( ), Formatting and Functions](https://manual.pvxplus.com/parameters/rs)**

## Example

The statement **SET_PARAM 'RN'=644** sets the parameter to round on any multiply or divide + with a **[WRITE](https://manual.pvxplus.com/directives/write)** directive + on all compares. (The sum of 4+128+512 is 644.)
