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

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
sqrt( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
srand( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
result = sqrt (value)
value is any float type
Returns a floating point value with a precision equal to value
Computes the non-negative square root of the float value x. If the argument is
negative, the behavior is undefined.
Note on error handling:
If "errno.h" is included then the domain and range errors are stored in the errno
variable. The user can check the errno to see if an error has occurred and print the
error using the perror function.
Domain error occurs in the following cases:
sqrt: when the argument is negative
All devices.
#INCLUDE <math.h>
distance = sqrt( pow((x1-x2),2)+pow((y1-y2),2) );
None
None
srand(n)
n is the seed for a new sequence of pseudo-random numbers to be returned by
subsequent calls to rand.
No value.
The srand() function uses the argument as a seed for a new sequence of pseudo-
random numbers to be returned by subsequent calls to rand. If srand() is then
called with same seed value, the sequence of random numbers shall be repeated. If
rand is called before any call to srand() have been made, the same sequence shall
be generated as when srand() is first called with a seed value of 1.
All devices.
#INCLUDE <STDLIB.H>
srand(10);
I=rand();
None
rand()
291

Related parts for PCDIDE COMPILER