id_link">#</a></dt><dd><p>
        Convert a variable of type decimal to a long integer.
</p><pre class="synopsis">
int dectolong(decimal *np, long *lngp);
</pre><p>
        The function receives a pointer to the decimal value to convert
        (<code class="literal">np</code>) and a pointer to the long variable that
        should hold the result of the operation (<code class="literal">lngp</code>).
       </p><p>
        On success, 0 is returned and a negative value if the conversion
        failed. If 