Divide one DBMONEY value by another.
RETCODE dbmnydivide(dbproc, m1, m2, quotient) DBPROCESS *dbproc; DBMONEY *m1; DBMONEY *m2; DBMONEY *quotient;
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and the server.
This parameter may be NULL. The DBPROCESS is used as a parameter to an application’s error handler. It also contains information on what language to print error messages in. If a DBPROCESS is not supplied, the default national language is used.
A pointer to the DBMONEY value serving as dividend.
A pointer to the DBMONEY value serving as divisor.
A pointer to a DBMONEY variable to hold the result of the division.
SUCCEED or FAIL.
dbmnydivide returns FAIL in case of overflow or division by zero, or if m1, m2, or quotient is NULL.
dbmnydivide divides the m1 DBMONEY value by the m2 DBMONEY value and places the result in *quotient.
In case of overflow or division by zero, dbmnydivide returns FAIL and sets *quotient to $0.0000.
The range of legal DBMONEY values is between +/-$922,337,203,685,477.5808. DBMONEY values have a precision of one ten-thousandth of a dollar.
dbmnyadd, dbmnysub, dbmnymul, dbmnyminus, dbmny4add, dbmny4sub, dbmny4mul, dbmny4divide, dbmny4minus