Current File : //usr/local/apps/share/doc/freetds/reference/a00376.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>FreeTDS API: Money functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">FreeTDS API
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Modules</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Money functions<div class="ingroups"><a class="el" href="a00371.html">The db-lib API</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Functions to manipulate the MONEY datatype.  
<a href="#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for Money functions:</div>
<div class="dyncontent">
<center><table><tr><td><div class="center"><iframe scrolling="no" frameborder="0" src="a00376.svg" width="294" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga0a384938a6586b7411fc42420ffad6ed"><td class="memItemLeft" align="right" valign="top">RETCODE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html#ga0a384938a6586b7411fc42420ffad6ed">dbmny4add</a> (<a class="el" href="a00131.html">DBPROCESS</a> *dbproc, <a class="el" href="a00068.html">DBMONEY4</a> *m1, <a class="el" href="a00068.html">DBMONEY4</a> *m2, <a class="el" href="a00068.html">DBMONEY4</a> *sum)</td></tr>
<tr class="memdesc:ga0a384938a6586b7411fc42420ffad6ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add two <a class="el" href="a00068.html">DBMONEY4</a> values.  <a href="#ga0a384938a6586b7411fc42420ffad6ed">More...</a><br /></td></tr>
<tr class="separator:ga0a384938a6586b7411fc42420ffad6ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga109d4868baccb08fad3b26b6f031dc78"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html#ga109d4868baccb08fad3b26b6f031dc78">dbmny4cmp</a> (<a class="el" href="a00131.html">DBPROCESS</a> *dbproc, <a class="el" href="a00068.html">DBMONEY4</a> *m1, <a class="el" href="a00068.html">DBMONEY4</a> *m2)</td></tr>
<tr class="memdesc:ga109d4868baccb08fad3b26b6f031dc78"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compare two <a class="el" href="a00068.html">DBMONEY4</a> values.  <a href="#ga109d4868baccb08fad3b26b6f031dc78">More...</a><br /></td></tr>
<tr class="separator:ga109d4868baccb08fad3b26b6f031dc78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa6d4c700b628f6a18a9d1ed9f8e2ba62"><td class="memItemLeft" align="right" valign="top">RETCODE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html#gaa6d4c700b628f6a18a9d1ed9f8e2ba62">dbmny4copy</a> (<a class="el" href="a00131.html">DBPROCESS</a> *dbproc, <a class="el" href="a00068.html">DBMONEY4</a> *src, <a class="el" href="a00068.html">DBMONEY4</a> *dest)</td></tr>
<tr class="memdesc:gaa6d4c700b628f6a18a9d1ed9f8e2ba62"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy a <a class="el" href="a00068.html">DBMONEY4</a> value.  <a href="#gaa6d4c700b628f6a18a9d1ed9f8e2ba62">More...</a><br /></td></tr>
<tr class="separator:gaa6d4c700b628f6a18a9d1ed9f8e2ba62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga76177eb61a67dd52424236aba1b16bc9"><td class="memItemLeft" align="right" valign="top">RETCODE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html#ga76177eb61a67dd52424236aba1b16bc9">dbmny4minus</a> (<a class="el" href="a00131.html">DBPROCESS</a> *dbproc, <a class="el" href="a00068.html">DBMONEY4</a> *src, <a class="el" href="a00068.html">DBMONEY4</a> *dest)</td></tr>
<tr class="memdesc:ga76177eb61a67dd52424236aba1b16bc9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Negate a <a class="el" href="a00068.html">DBMONEY4</a> value.  <a href="#ga76177eb61a67dd52424236aba1b16bc9">More...</a><br /></td></tr>
<tr class="separator:ga76177eb61a67dd52424236aba1b16bc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga856143f4f9c7a5c15fb15633af81487d"><td class="memItemLeft" align="right" valign="top">RETCODE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html#ga856143f4f9c7a5c15fb15633af81487d">dbmny4sub</a> (<a class="el" href="a00131.html">DBPROCESS</a> *dbproc, <a class="el" href="a00068.html">DBMONEY4</a> *m1, <a class="el" href="a00068.html">DBMONEY4</a> *m2, <a class="el" href="a00068.html">DBMONEY4</a> *diff)</td></tr>
<tr class="memdesc:ga856143f4f9c7a5c15fb15633af81487d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Subtract two <a class="el" href="a00068.html">DBMONEY4</a> values.  <a href="#ga856143f4f9c7a5c15fb15633af81487d">More...</a><br /></td></tr>
<tr class="separator:ga856143f4f9c7a5c15fb15633af81487d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga070e94f72f12c138a16a7bcdf732fa8b"><td class="memItemLeft" align="right" valign="top">RETCODE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html#ga070e94f72f12c138a16a7bcdf732fa8b">dbmny4zero</a> (<a class="el" href="a00131.html">DBPROCESS</a> *dbproc, <a class="el" href="a00068.html">DBMONEY4</a> *dest)</td></tr>
<tr class="memdesc:ga070e94f72f12c138a16a7bcdf732fa8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Zero a <a class="el" href="a00068.html">DBMONEY4</a> value.  <a href="#ga070e94f72f12c138a16a7bcdf732fa8b">More...</a><br /></td></tr>
<tr class="separator:ga070e94f72f12c138a16a7bcdf732fa8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadddacad5c3028aa8d3726246c3825651"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html#gadddacad5c3028aa8d3726246c3825651">dbmnycmp</a> (<a class="el" href="a00131.html">DBPROCESS</a> *dbproc, <a class="el" href="a00067.html">DBMONEY</a> *m1, <a class="el" href="a00067.html">DBMONEY</a> *m2)</td></tr>
<tr class="memdesc:gadddacad5c3028aa8d3726246c3825651"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compare two <a class="el" href="a00067.html">DBMONEY</a> values.  <a href="#gadddacad5c3028aa8d3726246c3825651">More...</a><br /></td></tr>
<tr class="separator:gadddacad5c3028aa8d3726246c3825651"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8f1e9aa0280c1cb46c10e5c90b8faced"><td class="memItemLeft" align="right" valign="top">RETCODE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html#ga8f1e9aa0280c1cb46c10e5c90b8faced">dbmnycopy</a> (<a class="el" href="a00131.html">DBPROCESS</a> *dbproc, <a class="el" href="a00067.html">DBMONEY</a> *src, <a class="el" href="a00067.html">DBMONEY</a> *dest)</td></tr>
<tr class="memdesc:ga8f1e9aa0280c1cb46c10e5c90b8faced"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy a <a class="el" href="a00067.html">DBMONEY</a> value.  <a href="#ga8f1e9aa0280c1cb46c10e5c90b8faced">More...</a><br /></td></tr>
<tr class="separator:ga8f1e9aa0280c1cb46c10e5c90b8faced"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabedce74748a31ea8a6e4068a5d44d8e4"><td class="memItemLeft" align="right" valign="top">RETCODE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html#gabedce74748a31ea8a6e4068a5d44d8e4">dbmnydec</a> (<a class="el" href="a00131.html">DBPROCESS</a> *dbproc, <a class="el" href="a00067.html">DBMONEY</a> *amount)</td></tr>
<tr class="memdesc:gabedce74748a31ea8a6e4068a5d44d8e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Subtract $0.0001 from a <a class="el" href="a00067.html">DBMONEY</a> value.  <a href="#gabedce74748a31ea8a6e4068a5d44d8e4">More...</a><br /></td></tr>
<tr class="separator:gabedce74748a31ea8a6e4068a5d44d8e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabf5216aaaa59ea7e7f07899f82a27faf"><td class="memItemLeft" align="right" valign="top">RETCODE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html#gabf5216aaaa59ea7e7f07899f82a27faf">dbmnyinc</a> (<a class="el" href="a00131.html">DBPROCESS</a> *dbproc, <a class="el" href="a00067.html">DBMONEY</a> *amount)</td></tr>
<tr class="memdesc:gabf5216aaaa59ea7e7f07899f82a27faf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add $0.0001 to a <a class="el" href="a00067.html">DBMONEY</a> value.  <a href="#gabf5216aaaa59ea7e7f07899f82a27faf">More...</a><br /></td></tr>
<tr class="separator:gabf5216aaaa59ea7e7f07899f82a27faf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabc3cb44d33bf1b9b18fd59f23e4da722"><td class="memItemLeft" align="right" valign="top">RETCODE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html#gabc3cb44d33bf1b9b18fd59f23e4da722">dbmnymaxneg</a> (<a class="el" href="a00131.html">DBPROCESS</a> *dbproc, <a class="el" href="a00067.html">DBMONEY</a> *amount)</td></tr>
<tr class="memdesc:gabc3cb44d33bf1b9b18fd59f23e4da722"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get maximum negative <a class="el" href="a00067.html">DBMONEY</a> value supported.  <a href="#gabc3cb44d33bf1b9b18fd59f23e4da722">More...</a><br /></td></tr>
<tr class="separator:gabc3cb44d33bf1b9b18fd59f23e4da722"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga70ca2474f6c93acd6e3b842330b712c7"><td class="memItemLeft" align="right" valign="top">RETCODE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html#ga70ca2474f6c93acd6e3b842330b712c7">dbmnymaxpos</a> (<a class="el" href="a00131.html">DBPROCESS</a> *dbproc, <a class="el" href="a00067.html">DBMONEY</a> *amount)</td></tr>
<tr class="memdesc:ga70ca2474f6c93acd6e3b842330b712c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get maximum positive <a class="el" href="a00067.html">DBMONEY</a> value supported.  <a href="#ga70ca2474f6c93acd6e3b842330b712c7">More...</a><br /></td></tr>
<tr class="separator:ga70ca2474f6c93acd6e3b842330b712c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga826bca98da4fd1c3188da45c383c3a68"><td class="memItemLeft" align="right" valign="top">RETCODE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html#ga826bca98da4fd1c3188da45c383c3a68">dbmnyminus</a> (<a class="el" href="a00131.html">DBPROCESS</a> *dbproc, <a class="el" href="a00067.html">DBMONEY</a> *src, <a class="el" href="a00067.html">DBMONEY</a> *dest)</td></tr>
<tr class="memdesc:ga826bca98da4fd1c3188da45c383c3a68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Negate a <a class="el" href="a00067.html">DBMONEY</a> value.  <a href="#ga826bca98da4fd1c3188da45c383c3a68">More...</a><br /></td></tr>
<tr class="separator:ga826bca98da4fd1c3188da45c383c3a68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8eab0959d5a3cd534487b350258c939e"><td class="memItemLeft" align="right" valign="top">RETCODE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00376.html#ga8eab0959d5a3cd534487b350258c939e">dbmnyzero</a> (<a class="el" href="a00131.html">DBPROCESS</a> *dbproc, <a class="el" href="a00067.html">DBMONEY</a> *dest)</td></tr>
<tr class="memdesc:ga8eab0959d5a3cd534487b350258c939e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a <a class="el" href="a00067.html">DBMONEY</a> value to zero.  <a href="#ga8eab0959d5a3cd534487b350258c939e">More...</a><br /></td></tr>
<tr class="separator:ga8eab0959d5a3cd534487b350258c939e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Functions to manipulate the MONEY datatype. </p>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga0a384938a6586b7411fc42420ffad6ed"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RETCODE dbmny4add </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00131.html">DBPROCESS</a> *&#160;</td>
          <td class="paramname"><em>dbproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00068.html">DBMONEY4</a> *&#160;</td>
          <td class="paramname"><em>m1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00068.html">DBMONEY4</a> *&#160;</td>
          <td class="paramname"><em>m2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00068.html">DBMONEY4</a> *&#160;</td>
          <td class="paramname"><em>sum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add two <a class="el" href="a00068.html">DBMONEY4</a> values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr>
    <tr><td class="paramname">m1</td><td>first operand. </td></tr>
    <tr><td class="paramname">m2</td><td>other operand. </td></tr>
    <tr><td class="paramname">sum</td><td><em>output:</em> result of computation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">SUCCEED</td><td>usually. </td></tr>
    <tr><td class="paramname">FAIL</td><td>on overflow. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>dbmnyadd(), dbmnysub(), dbmnymul(), dbmnydivide(), <a class="el" href="a00376.html#ga826bca98da4fd1c3188da45c383c3a68" title="Negate a DBMONEY value. ">dbmnyminus()</a>, <a class="el" href="a00376.html#ga0a384938a6586b7411fc42420ffad6ed" title="Add two DBMONEY4 values. ">dbmny4add()</a>, <a class="el" href="a00376.html#ga856143f4f9c7a5c15fb15633af81487d" title="Subtract two DBMONEY4 values. ">dbmny4sub()</a>, dbmny4mul(), dbmny4divide(), <a class="el" href="a00376.html#ga76177eb61a67dd52424236aba1b16bc9" title="Negate a DBMONEY4 value. ">dbmny4minus()</a>. </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_ga0a384938a6586b7411fc42420ffad6ed_cgraph.svg" width="256" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga109d4868baccb08fad3b26b6f031dc78"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dbmny4cmp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00131.html">DBPROCESS</a> *&#160;</td>
          <td class="paramname"><em>dbproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00068.html">DBMONEY4</a> *&#160;</td>
          <td class="paramname"><em>m1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00068.html">DBMONEY4</a> *&#160;</td>
          <td class="paramname"><em>m2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Compare two <a class="el" href="a00068.html">DBMONEY4</a> values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr>
    <tr><td class="paramname">m1</td><td>some money. </td></tr>
    <tr><td class="paramname">m2</td><td>some other money. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>m1 == m2. </td></tr>
    <tr><td class="paramname">-1</td><td>m1 &lt; m2. </td></tr>
    <tr><td class="paramname">1</td><td>m1 &gt; m2. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>dbmnyadd(), dbmnysub(), dbmnymul(), dbmnydivide(), <a class="el" href="a00376.html#ga826bca98da4fd1c3188da45c383c3a68" title="Negate a DBMONEY value. ">dbmnyminus()</a>, <a class="el" href="a00376.html#ga0a384938a6586b7411fc42420ffad6ed" title="Add two DBMONEY4 values. ">dbmny4add()</a>, <a class="el" href="a00376.html#ga856143f4f9c7a5c15fb15633af81487d" title="Subtract two DBMONEY4 values. ">dbmny4sub()</a>, dbmny4mul(), dbmny4divide(), <a class="el" href="a00376.html#ga76177eb61a67dd52424236aba1b16bc9" title="Negate a DBMONEY4 value. ">dbmny4minus()</a>. </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_ga109d4868baccb08fad3b26b6f031dc78_cgraph.svg" width="259" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="gaa6d4c700b628f6a18a9d1ed9f8e2ba62"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RETCODE dbmny4copy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00131.html">DBPROCESS</a> *&#160;</td>
          <td class="paramname"><em>dbproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00068.html">DBMONEY4</a> *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00068.html">DBMONEY4</a> *&#160;</td>
          <td class="paramname"><em>dest</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy a <a class="el" href="a00068.html">DBMONEY4</a> value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr>
    <tr><td class="paramname">src</td><td>address of a <a class="el" href="a00068.html">DBMONEY4</a> structure. </td></tr>
    <tr><td class="paramname">dest</td><td><em>output:</em> new money. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">SUCCEED</td><td>or FAIL if src/dest NULL. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a00376.html#ga8f1e9aa0280c1cb46c10e5c90b8faced" title="Copy a DBMONEY value. ">dbmnycopy()</a>, <a class="el" href="a00376.html#ga826bca98da4fd1c3188da45c383c3a68" title="Negate a DBMONEY value. ">dbmnyminus()</a>, <a class="el" href="a00376.html#ga76177eb61a67dd52424236aba1b16bc9" title="Negate a DBMONEY4 value. ">dbmny4minus()</a>. </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_gaa6d4c700b628f6a18a9d1ed9f8e2ba62_cgraph.svg" width="263" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga76177eb61a67dd52424236aba1b16bc9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RETCODE dbmny4minus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00131.html">DBPROCESS</a> *&#160;</td>
          <td class="paramname"><em>dbproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00068.html">DBMONEY4</a> *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00068.html">DBMONEY4</a> *&#160;</td>
          <td class="paramname"><em>dest</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Negate a <a class="el" href="a00068.html">DBMONEY4</a> value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr>
    <tr><td class="paramname">src</td><td>address of a <a class="el" href="a00068.html">DBMONEY4</a> structure. </td></tr>
    <tr><td class="paramname">dest</td><td><em>output:</em> result of negation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">SUCCEED</td><td>usually. </td></tr>
    <tr><td class="paramname">FAIL</td><td>on overflow. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>dbmnyadd(), dbmnysub(), dbmnymul(), dbmnydivide(), <a class="el" href="a00376.html#ga826bca98da4fd1c3188da45c383c3a68" title="Negate a DBMONEY value. ">dbmnyminus()</a>, <a class="el" href="a00376.html#ga0a384938a6586b7411fc42420ffad6ed" title="Add two DBMONEY4 values. ">dbmny4add()</a>, <a class="el" href="a00376.html#ga856143f4f9c7a5c15fb15633af81487d" title="Subtract two DBMONEY4 values. ">dbmny4sub()</a>, dbmny4mul(), dbmny4divide(), <a class="el" href="a00376.html#ga76177eb61a67dd52424236aba1b16bc9" title="Negate a DBMONEY4 value. ">dbmny4minus()</a>. </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_ga76177eb61a67dd52424236aba1b16bc9_cgraph.svg" width="415" height="104"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga856143f4f9c7a5c15fb15633af81487d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RETCODE dbmny4sub </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00131.html">DBPROCESS</a> *&#160;</td>
          <td class="paramname"><em>dbproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00068.html">DBMONEY4</a> *&#160;</td>
          <td class="paramname"><em>m1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00068.html">DBMONEY4</a> *&#160;</td>
          <td class="paramname"><em>m2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00068.html">DBMONEY4</a> *&#160;</td>
          <td class="paramname"><em>diff</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Subtract two <a class="el" href="a00068.html">DBMONEY4</a> values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr>
    <tr><td class="paramname">m1</td><td>first operand. </td></tr>
    <tr><td class="paramname">m2</td><td>other operand, subtracted from <em>m1</em>. </td></tr>
    <tr><td class="paramname">diff</td><td><em>output:</em> result of computation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">SUCCEED</td><td>usually. </td></tr>
    <tr><td class="paramname">FAIL</td><td>on overflow. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>dbmnyadd(), dbmnysub(), dbmnymul(), dbmnydivide(), <a class="el" href="a00376.html#ga826bca98da4fd1c3188da45c383c3a68" title="Negate a DBMONEY value. ">dbmnyminus()</a>, <a class="el" href="a00376.html#ga0a384938a6586b7411fc42420ffad6ed" title="Add two DBMONEY4 values. ">dbmny4add()</a>, <a class="el" href="a00376.html#ga856143f4f9c7a5c15fb15633af81487d" title="Subtract two DBMONEY4 values. ">dbmny4sub()</a>, dbmny4mul(), dbmny4divide(), <a class="el" href="a00376.html#ga76177eb61a67dd52424236aba1b16bc9" title="Negate a DBMONEY4 value. ">dbmny4minus()</a>. </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_ga856143f4f9c7a5c15fb15633af81487d_cgraph.svg" width="254" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_ga856143f4f9c7a5c15fb15633af81487d_icgraph.svg" width="258" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga070e94f72f12c138a16a7bcdf732fa8b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RETCODE dbmny4zero </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00131.html">DBPROCESS</a> *&#160;</td>
          <td class="paramname"><em>dbproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00068.html">DBMONEY4</a> *&#160;</td>
          <td class="paramname"><em>dest</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Zero a <a class="el" href="a00068.html">DBMONEY4</a> value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr>
    <tr><td class="paramname">dest</td><td>address of a <a class="el" href="a00067.html">DBMONEY</a> structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">SUCCEED</td><td>usually. </td></tr>
    <tr><td class="paramname">FAIL</td><td><em>dest</em> is NULL. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>dbmnyadd(), dbmnysub(), dbmnymul(), dbmnydivide(), <a class="el" href="a00376.html#ga826bca98da4fd1c3188da45c383c3a68" title="Negate a DBMONEY value. ">dbmnyminus()</a>, <a class="el" href="a00376.html#ga0a384938a6586b7411fc42420ffad6ed" title="Add two DBMONEY4 values. ">dbmny4add()</a>, <a class="el" href="a00376.html#ga856143f4f9c7a5c15fb15633af81487d" title="Subtract two DBMONEY4 values. ">dbmny4sub()</a>, dbmny4mul(), dbmny4divide(), <a class="el" href="a00376.html#ga76177eb61a67dd52424236aba1b16bc9" title="Negate a DBMONEY4 value. ">dbmny4minus()</a>. </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_ga070e94f72f12c138a16a7bcdf732fa8b_cgraph.svg" width="260" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_ga070e94f72f12c138a16a7bcdf732fa8b_icgraph.svg" width="264" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="gadddacad5c3028aa8d3726246c3825651"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int dbmnycmp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00131.html">DBPROCESS</a> *&#160;</td>
          <td class="paramname"><em>dbproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00067.html">DBMONEY</a> *&#160;</td>
          <td class="paramname"><em>m1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00067.html">DBMONEY</a> *&#160;</td>
          <td class="paramname"><em>m2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Compare two <a class="el" href="a00067.html">DBMONEY</a> values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr>
    <tr><td class="paramname">m1</td><td>some money. </td></tr>
    <tr><td class="paramname">m2</td><td>some other money. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>m1 == m2. </td></tr>
    <tr><td class="paramname">-1</td><td>m1 &lt; m2. </td></tr>
    <tr><td class="paramname">1</td><td>m1 &gt; m2. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>dbmnyadd(), dbmnysub(), dbmnymul(), dbmnydivide(), <a class="el" href="a00376.html#ga826bca98da4fd1c3188da45c383c3a68" title="Negate a DBMONEY value. ">dbmnyminus()</a>, <a class="el" href="a00376.html#ga0a384938a6586b7411fc42420ffad6ed" title="Add two DBMONEY4 values. ">dbmny4add()</a>, <a class="el" href="a00376.html#ga856143f4f9c7a5c15fb15633af81487d" title="Subtract two DBMONEY4 values. ">dbmny4sub()</a>, dbmny4mul(), dbmny4divide(), <a class="el" href="a00376.html#ga76177eb61a67dd52424236aba1b16bc9" title="Negate a DBMONEY4 value. ">dbmny4minus()</a>. </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_gadddacad5c3028aa8d3726246c3825651_cgraph.svg" width="251" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga8f1e9aa0280c1cb46c10e5c90b8faced"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RETCODE dbmnycopy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00131.html">DBPROCESS</a> *&#160;</td>
          <td class="paramname"><em>dbproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00067.html">DBMONEY</a> *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00067.html">DBMONEY</a> *&#160;</td>
          <td class="paramname"><em>dest</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy a <a class="el" href="a00067.html">DBMONEY</a> value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr>
    <tr><td class="paramname">src</td><td>address of a <a class="el" href="a00067.html">DBMONEY</a> structure. </td></tr>
    <tr><td class="paramname">dest</td><td><em>output:</em> new money. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">SUCCEED</td><td>always, unless <em>src</em> or <em>dest</em> is <code>NULL</code>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd></dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_ga8f1e9aa0280c1cb46c10e5c90b8faced_cgraph.svg" width="255" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="gabedce74748a31ea8a6e4068a5d44d8e4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RETCODE dbmnydec </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00131.html">DBPROCESS</a> *&#160;</td>
          <td class="paramname"><em>dbproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00067.html">DBMONEY</a> *&#160;</td>
          <td class="paramname"><em>amount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Subtract $0.0001 from a <a class="el" href="a00067.html">DBMONEY</a> value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr>
    <tr><td class="paramname">amount</td><td>address of a <a class="el" href="a00067.html">DBMONEY</a> structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">SUCCEED</td><td>or FAIL if overflow or amount NULL. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>dbmnyadd(), dbmnysub(), dbmnymul(), dbmnydivide(), <a class="el" href="a00376.html#ga826bca98da4fd1c3188da45c383c3a68" title="Negate a DBMONEY value. ">dbmnyminus()</a>, <a class="el" href="a00376.html#ga0a384938a6586b7411fc42420ffad6ed" title="Add two DBMONEY4 values. ">dbmny4add()</a>, <a class="el" href="a00376.html#ga856143f4f9c7a5c15fb15633af81487d" title="Subtract two DBMONEY4 values. ">dbmny4sub()</a>, dbmny4mul(), dbmny4divide(), <a class="el" href="a00376.html#ga76177eb61a67dd52424236aba1b16bc9" title="Negate a DBMONEY4 value. ">dbmny4minus()</a>. </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_gabedce74748a31ea8a6e4068a5d44d8e4_cgraph.svg" width="248" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="gabf5216aaaa59ea7e7f07899f82a27faf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RETCODE dbmnyinc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00131.html">DBPROCESS</a> *&#160;</td>
          <td class="paramname"><em>dbproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00067.html">DBMONEY</a> *&#160;</td>
          <td class="paramname"><em>amount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add $0.0001 to a <a class="el" href="a00067.html">DBMONEY</a> value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr>
    <tr><td class="paramname">amount</td><td>address of a <a class="el" href="a00067.html">DBMONEY</a> structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">SUCCEED</td><td>or FAIL if overflow or amount NULL. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>dbmnyadd(), dbmnysub(), dbmnymul(), dbmnydivide(), <a class="el" href="a00376.html#ga826bca98da4fd1c3188da45c383c3a68" title="Negate a DBMONEY value. ">dbmnyminus()</a>, <a class="el" href="a00376.html#ga0a384938a6586b7411fc42420ffad6ed" title="Add two DBMONEY4 values. ">dbmny4add()</a>, <a class="el" href="a00376.html#ga856143f4f9c7a5c15fb15633af81487d" title="Subtract two DBMONEY4 values. ">dbmny4sub()</a>, dbmny4mul(), dbmny4divide(), <a class="el" href="a00376.html#ga76177eb61a67dd52424236aba1b16bc9" title="Negate a DBMONEY4 value. ">dbmny4minus()</a>. </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_gabf5216aaaa59ea7e7f07899f82a27faf_cgraph.svg" width="243" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="gabc3cb44d33bf1b9b18fd59f23e4da722"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RETCODE dbmnymaxneg </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00131.html">DBPROCESS</a> *&#160;</td>
          <td class="paramname"><em>dbproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00067.html">DBMONEY</a> *&#160;</td>
          <td class="paramname"><em>amount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get maximum negative <a class="el" href="a00067.html">DBMONEY</a> value supported. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr>
    <tr><td class="paramname">amount</td><td>address of a <a class="el" href="a00067.html">DBMONEY</a> structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">SUCCEED</td><td>Always. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>dbmnyadd(), dbmnysub(), dbmnymul(), dbmnydivide(), <a class="el" href="a00376.html#ga826bca98da4fd1c3188da45c383c3a68" title="Negate a DBMONEY value. ">dbmnyminus()</a>, <a class="el" href="a00376.html#ga0a384938a6586b7411fc42420ffad6ed" title="Add two DBMONEY4 values. ">dbmny4add()</a>, <a class="el" href="a00376.html#ga856143f4f9c7a5c15fb15633af81487d" title="Subtract two DBMONEY4 values. ">dbmny4sub()</a>, dbmny4mul(), dbmny4divide(), <a class="el" href="a00376.html#ga76177eb61a67dd52424236aba1b16bc9" title="Negate a DBMONEY4 value. ">dbmny4minus()</a>. </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_gabc3cb44d33bf1b9b18fd59f23e4da722_cgraph.svg" width="275" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga70ca2474f6c93acd6e3b842330b712c7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RETCODE dbmnymaxpos </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00131.html">DBPROCESS</a> *&#160;</td>
          <td class="paramname"><em>dbproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00067.html">DBMONEY</a> *&#160;</td>
          <td class="paramname"><em>amount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get maximum positive <a class="el" href="a00067.html">DBMONEY</a> value supported. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr>
    <tr><td class="paramname">amount</td><td>address of a <a class="el" href="a00067.html">DBMONEY</a> structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">SUCCEED</td><td>Always. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>dbmnyadd(), dbmnysub(), dbmnymul(), dbmnydivide(), <a class="el" href="a00376.html#ga826bca98da4fd1c3188da45c383c3a68" title="Negate a DBMONEY value. ">dbmnyminus()</a>, <a class="el" href="a00376.html#ga0a384938a6586b7411fc42420ffad6ed" title="Add two DBMONEY4 values. ">dbmny4add()</a>, <a class="el" href="a00376.html#ga856143f4f9c7a5c15fb15633af81487d" title="Subtract two DBMONEY4 values. ">dbmny4sub()</a>, dbmny4mul(), dbmny4divide(), <a class="el" href="a00376.html#ga76177eb61a67dd52424236aba1b16bc9" title="Negate a DBMONEY4 value. ">dbmny4minus()</a>. </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_ga70ca2474f6c93acd6e3b842330b712c7_cgraph.svg" width="274" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga826bca98da4fd1c3188da45c383c3a68"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RETCODE dbmnyminus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00131.html">DBPROCESS</a> *&#160;</td>
          <td class="paramname"><em>dbproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00067.html">DBMONEY</a> *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00067.html">DBMONEY</a> *&#160;</td>
          <td class="paramname"><em>dest</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Negate a <a class="el" href="a00067.html">DBMONEY</a> value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr>
    <tr><td class="paramname">src</td><td>address of a <a class="el" href="a00067.html">DBMONEY</a> structure. </td></tr>
    <tr><td class="paramname">dest</td><td><em>output:</em> result of negation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">SUCCEED</td><td>or FAIL if overflow or src/dest NULL. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>dbmnyadd(), dbmnysub(), dbmnymul(), dbmnydivide(), <a class="el" href="a00376.html#ga826bca98da4fd1c3188da45c383c3a68" title="Negate a DBMONEY value. ">dbmnyminus()</a>, <a class="el" href="a00376.html#ga0a384938a6586b7411fc42420ffad6ed" title="Add two DBMONEY4 values. ">dbmny4add()</a>, <a class="el" href="a00376.html#ga856143f4f9c7a5c15fb15633af81487d" title="Subtract two DBMONEY4 values. ">dbmny4sub()</a>, dbmny4mul(), dbmny4divide(), <a class="el" href="a00376.html#ga76177eb61a67dd52424236aba1b16bc9" title="Negate a DBMONEY4 value. ">dbmny4minus()</a>. </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_ga826bca98da4fd1c3188da45c383c3a68_cgraph.svg" width="260" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga8eab0959d5a3cd534487b350258c939e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RETCODE dbmnyzero </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00131.html">DBPROCESS</a> *&#160;</td>
          <td class="paramname"><em>dbproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00067.html">DBMONEY</a> *&#160;</td>
          <td class="paramname"><em>dest</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set a <a class="el" href="a00067.html">DBMONEY</a> value to zero. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dbproc</td><td>contains all information needed by db-lib to manage communications with the server. </td></tr>
    <tr><td class="paramname">dest</td><td>address of a <a class="el" href="a00067.html">DBMONEY</a> structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">SUCCEED</td><td>unless <em>amount</em> is NULL. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>dbmnyadd(), dbmnysub(), dbmnymul(), dbmnydivide(), <a class="el" href="a00376.html#ga826bca98da4fd1c3188da45c383c3a68" title="Negate a DBMONEY value. ">dbmnyminus()</a>, <a class="el" href="a00376.html#ga0a384938a6586b7411fc42420ffad6ed" title="Add two DBMONEY4 values. ">dbmny4add()</a>, <a class="el" href="a00376.html#ga856143f4f9c7a5c15fb15633af81487d" title="Subtract two DBMONEY4 values. ">dbmny4sub()</a>, dbmny4mul(), dbmny4divide(), <a class="el" href="a00376.html#ga76177eb61a67dd52424236aba1b16bc9" title="Negate a DBMONEY4 value. ">dbmny4minus()</a>. </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="a00376_ga8eab0959d5a3cd534487b350258c939e_cgraph.svg" width="252" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Feb 15 2017 09:01:18 for FreeTDS API by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>