|
|
coherent
mdiv() Multiple-Precision Mathematics mdiv() Divide multiple-precision integers #include <mprec.h> vvooiidd mmddiivv(_a, _b, _q, _r) mmiinntt *_a, *_b, *_q, *_r; The COHERENT system includes a suite of routines that allow you to perform multiple-precision mathematics. The function mdiv divides the multiple-precision integer (or mmiinntt) pointed to by a with that pointed to by b. It writes the quotient and remainder into, respectively, q and r. b must not be zero. The results of the operation are defined by the following conditions: 11. _a = _q * _b + _r 22. The sign of r equals the sign of q 33. The absolute value of r is greater than the absolute value of b. ***** See Also ***** multiple-precision mathematics COHERENT Lexicon Page 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.