SW006014 Microchip Technology, SW006014 Datasheet - Page 167
SW006014
Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet
1.SW006014.pdf
(246 pages)
Specifications of SW006014
Supported Families
PIC24
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24
Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC24
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
- Current page: 167 of 246
- Download datasheet (3Mb)
© 2008 Microchip Technology Inc.
floorf (Continued)
Example:
fmod
Description:
Include:
Prototype:
Arguments:
Return Value:
Remarks:
Example:
#include <math.h>
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
The floor for
The floor for
The floor for
The floor for
The floor for
The floor for
The floor for
The floor for
Calculates the remainder of x/y as a double precision value.
<math.h>
double fmod(double x, double y);
x
y
Returns the remainder of x divided by y.
If y = 0, a domain error occurs. If y is non-zero, the result will have the
same sign as x and the magnitude of the result will be less than the
magnitude of y.
#include <math.h>
#include <stdio.h> /* for printf, perror */
#include <errno.h> /* for errno
int main(void)
{
float x[8] = {2.0F, 1.75F, 1.5F, 1.25F,
float y;
int i;
for (i=0; i<8; i++)
{
}
double x,y,z;
errno = 0;
x = 7.0;
y = 3.0;
z = fmod(x, y);
if (errno)
printf("For fmod(%f, %f) the remainder is %f\n\n",
y = floorf (x[i]);
printf("The floor for
perror("Error");
x, y, z);
a double precision floating-point value.
a double precision floating-point value.
2.000000 is
1.750000 is
1.500000 is
1.250000 is
-2.000000 is
-1.750000 is
-1.500000 is
-1.250000 is
-2.0F, -1.75F, -1.5F, -1.25F};
/* for floorf */
/* for fmod
%f is
2.000000
1.000000
1.000000
1.000000
-2.000000
-2.000000
-2.000000
-2.000000
%f\n", x[i], y);
DS51456E-page 163
*/
*/
Related parts for SW006014
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: