SW500009 Microchip Technology, SW500009 Datasheet - Page 198

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
DIV
Synopsis
Description
The div() function computes the quotient and remainder of the numerator divided by the denomina-
tor.
Example
Return Value
Returns the quotient and remainder into the div_t structure.
184
#include <stdlib.h>
div_t div (int numer, int demon)
#include <stdlib.h>
#include <stdio.h>
void
main (void)
{
}
div_t x;
x = div(12345, 66);
printf("quotient = %d, remainder = %d\n", x.quot, x.rem);
Library Functions

Related parts for SW500009