Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Command Index > S > SET

NUMROUND

Scroll Prev Top Next More

Operating Condition

 

Syntax: SET NUMROUND ON/OFF

 

Default: OFF

 

Use NUMROUND to round any excess scale digits for numeric data types.

 

The default value is OFF, which means that numeric values must follow the definition for the maximum number of digits to the right of the decimal (the scale).        

 

If NUMROUND is ON, then as long as the number would round to a valid numeric with that precision and scale, R:BASE will accept the value. This means that if you entered 0.237 with NUMROUND set to ON, it will be allowed and the stored value will be 0.24.