Download 019P Manual - Digi-Key
Transcript
Library Functions
MODF
Synopsis
#include <math.h>
double modf (double value, double * iptr)
Description
The modf() function splits the argument value into integral and fractional parts, each having the
same sign as value. For example, -3.17 would be split into the integral part (-3) and the fractional
part (-0.17).
The integral part is stored as a double in the object pointed to by iptr.
Example
#include <math.h>
#include <stdio.h>
void
main (void)
{
double i_val, f_val;
f_val = modf( -3.17, &i_val);
}
Return Value
The signed fractional part of value.
261
Related documents
Manual - IS MU
HI-TECH C for PIC10/12/16 User`s Guide
032 Manual - Digi-Key
Manual - Digi-Key
US letter format
ND 2100G Manual
MPLAB® XC8 C Compiler Version 1.20 Release Notes - Digi-Key
as a PDF
"Dough It Yourself" Handbook
£10,000 prize draw
HI-TECH C for PIC10/12/16 User's Guide
Untitled - 深圳市英锐恩科技有限公司