Skip to main content
Previous sectionNext section

TruncateOverflow

Suppress the <MAXNUMBER> error on numeric overflow.

Synopsis

[Miscellaneous]    TruncateOverflow=n

n is either 1 (true) or 0 (false). The default value is 0.

Description

Normally, when InterSystems IRIS® data platform encounters an extremely large number (on the order of 1.0E147, or -1.0E146), it throws the <MAXNUMBER> error. When TruncateOverflow is enabled, the <MAXNUMBER> error is suppressed.

For more information, see the Extremely Large Numbers section of the “Data Types and Values” chapter in Using ObjectScript.

Changing This Parameter

On the Compatibility page of the Management Portal (System Administration > Configuration > Additional Settings > Compatibility), in the TruncateOverflow row, click Edit. Select TruncateOverflow to enable this setting.

Instead of using the Management Portal, you can change TruncateOverflow in the Config.Miscellanous class (as described in the class reference) or by editing the CPF in a text editor (as described in the Editing the Active CPF section of the “Introduction to the Configuration Parameter File” chapter in this book).

To change this parameter for a single process only (as opposed to instance-wide), use the TruncateOverflow() method of the %SYSTEM.Process class. See the class reference for details.

See Also

  • $DOUBLE function in ObjectScript Reference.