SW500009 Microchip Technology, SW500009 Datasheet - Page 232

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
MODF
Synopsis
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).
Example
Return Value
The signed fractional part of value.
218
The integral part is stored as a double in the object pointed to by iptr.
#include <math.h>
double modf (double value, double * iptr)
#include <math.h>
#include <stdio.h>
void
main (void)
{
}
double i_val, f_val;
f_val = modf( -3.17, &i_val);
Library Functions

Related parts for SW500009