InterSystems IRIS Data Platform 2020.4 > Class Reference > ENSLIB namespace > %xsd.nonNegativeInteger


datatype class %xsd.nonNegativeInteger extends %Library.Integer


This data type represents a non-negative integer value.

This is identical to the %xsd.integer data type except that it has a default MINVAL parameter of 0.


parameter MINVAL = 0;
The minimum allowed logical value for the data type.
parameter STRICT = 1;
Inherited description: If '1' then IsValid() will return false for numbers that are not integers e.g. 1.2, -0.01 rather than the default behavior which is to allow these an normalize them to an integer. This validation is done by $number using "I" format, so the rules associated with this function apply.
parameter XSDTYPE = nonNegativeInteger;
Declares the XSD type used when projecting XML schemas.

Inherited Members

Inherited Methods (Including Private)