Subtract one DBMONEY4 value from another.
RETCODE dbmny4sub(dbproc, m1, m2, difference) DBPROCESS *dbproc; DBMONEY4 *m1; DBMONEY4 *m2; DBMONEY4 *difference;
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 DBMONEY4 value to be subtracted from.
A pointer to the DBMONEY4 value to subtract.
A pointer to a DBMONEY4 variable to hold the result of the subtraction.
SUCCEED or FAIL.
dbmny4sub returns FAIL in case of overflow, or if m1, m2, or difference is NULL.
dbmny4sub subtracts the m2 DBMONEY4 value from the m1 DBMONEY4 value and places the result in *difference.
In case of overflow, dbmny4sub returns FAIL and sets *difference to $0.0000.
The range of legal DBMONEY4 values is from -$214,748.3648 to $214,748.3647. DBMONEY4 values have a precision of one ten-thousandth of a dollar.
dbmny4sub, dbmny4mul, dbmny4divide, dbmny4minus, dbmny4add, dbmnysub, dbmnymul, dbmnydivide, dbmnyminus