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

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
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 PCWHD IDE COMPILER