PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 191

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
div( ) ldiv( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
idiv=div(num, denom)
ldiv =ldiv(lnum, ldenom)
num and denom are signed integers.
num is the numerator and denom is the denominator.
lnum and ldenom are signed longs , signed int32, int48 or int64
lnum is the numerator and ldenom is the denominator.
idiv is a structure of type div_t and lidiv is a structure of type ldiv_t. The div
function returns a structure of type div_t, comprising of both the quotient and the
remainder. The ldiv function returns a structure of type ldiv_t, comprising of both
the quotient and the remainder.
The div and ldiv function computes the quotient and remainder of the division of
the numerator by the denominator. If the division is inexact, the resulting quotient
is the integer or long of lesser magnitude that is the nearest to the algebraic
quotient. If the result cannot be represented, the behavior is undefined; otherwise
quot*denom(ldenom)+rem shall equal num(lnum).
All devices.
#INCLUDE <STDLIB.H>
div_t idiv;
ldiv_t lidiv;
idiv=div(3,2);
//idiv will contain quot=1 and rem=1
lidiv=ldiv(300,250);
//lidiv will contain lidiv.quot=1 and lidiv.rem=50
None
None
177

Related parts for PCDIDE COMPILER