17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Also See:<br />

input(), input_x(), output_float()<br />

pow( ) pwr( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

f = pow (x,y)<br />

f = pwr (x,y)<br />

x and y are of type float<br />

A float<br />

Calculates X to the Y power.<br />

Note on error handling:<br />

If "errno.h" is included then the domain and range errors are stored in the<br />

errno variable. The user can check the errno to see if an error has occurred<br />

and print the error using the perror function.<br />

Range error occurs in the following case:<br />

pow: when the argument X is negative<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

All Devices<br />

#INCLUDE <br />

area = pow (size,3.0);<br />

None<br />

None<br />

printf( ) fprintf( )<br />

Syntax:<br />

printf (string)<br />

or<br />

printf (cstring, values...)<br />

or<br />

printf (fname, cstring, values...)<br />

fprintf (stream, cstring, values...)<br />

232

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!