n level3 unnumbered">
<h3>Constrained Integer</h3>
<p>Integer data types may be constrained to allow values only in a
specified interval by providing a lower bound, an upper bound, or
both. For instance, to declare <code>N</code> to be a positive integer, use
the following.</p>
<pre class="stan"><code>int&lt;lower=1&gt; N;</code></pre>
<p>This illustrates that the bounds are inclusive for integers.</p>
<p>To declare an integer variable <code>cond</code> to take only binary values,
that is zero or one, a low