EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1149 background imageLoading...
Page #1149 background image
Appendix A: System Routines — Utilities
1107
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
ldiv
Declaration:
ldiv_t
ldiv
(long
numerator,
long
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
Numerator.
denominator
Denominator.
Outputs:
A structure (ldiv_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: div
Example:
The following code fragment will run on any version of AMS since it forces
the
ldiv
routine from the AMS library to be linked in.
include "tiams.h"
#undef ldiv
ldiv_t ldiv( long, long );
.
.
.
long num, denom;
ldiv_t ldt;
.
.
.
ldt = div( num, denom );

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals