Appendix A: System Routines — Direct Floating Point Operations
419
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
modf
Declaration:
double
modf
(double
x
, double *
int_ptr
)
Category(ies):
Direct Floating Point Operations
Description:
Breaks down a floating-point number into fractional and integer parts.
Inputs:
x
— A double floating-point value.
Outputs:
Returns the fractional portion of
x
.
Stores the integer portion of
x
as a floating-point value at *
int_ptr
.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: modf
Example: