Texas Instruments TI-89 Developer's Manual page 1143

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — Utilities
div
Declaration:
div_t div (int numerator, int denominator )
Category(ies):
Utilities
Description:
Computes the quotient and remainder of the division of the numerator by
the denominator. If the division is inexact, the resulting quotient is the
integer of lesser magnitude that is the nearest to the algebraic quotient. If
the result can be represented, then:
numerator = quot * denominator + rem
Inputs:
numerator
denominator — Denominator.
Outputs:
A structure (div_t) whose elements are quot (quotient) and rem (remainder)
as defined above.
Assumptions:
None
Side Effects:
None
Availability:
In the jump table on AMS 2.04 and higher.
Always available in the AMS library.
TI-89 / TI-92 Plus
Differences:
None
See Also:
ldiv
Example:
The following code fragment will run on any version of AMS since it forces
the div routine from the AMS library to be linked in.
include "tiams.h"
#undef div
div_t div( int, int );
.
.
.
int num, denom;
div_t dt;
.
.
.
dt = div( num, denom );
TI-89 / TI-92 Plus Developer Guide
— Numerator.
Not for Distribution
1101
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents