dbmny4divide

Description

Divide one DBMONEY4 value by another.

Syntax

RETCODE dbmny4divide(dbproc, m1, m2, quotient)
 
DBPROCESS     *dbproc;
DBMONEY4       *m1;
DBMONEY4       *m2;
DBMONEY4       *quotient;

Parameters

dbproc

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.

m1

A pointer to the DBMONEY4 value serving as dividend.

m2

A pointer to the DBMONEY4 value serving as divisor.

quotient

A pointer to a DBMONEY4 variable to hold the result of the division.

Returns

SUCCEED or FAIL.

dbmny4divide returns FAIL in case of overflow or division by zero, or if m1, m2, or quotient is NULL.

Usage

See also

dbmny4add, dbmny4sub, dbmny4mul, dbmny4minus, dbmnyadd, dbmnysub, dbmnymul, dbmnydivide, dbmnyminus