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.

Returns:<br />

Function:<br />

A float<br />

Computes the natural logarithm of the float x. If the argument is less than or<br />

equal to zero or too large, the behavior is undefined.<br />

Note on error handling:<br />

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

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

the error using the perror function.<br />

Domain error occurs in the following cases:<br />

log: when the argument is negative<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

All devices<br />

#INCLUDE <br />

lnx = log(x);<br />

None<br />

log10(), exp(), pow()<br />

log10( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

result = log10 (value)<br />

value is a float<br />

A float<br />

Computes the base-ten logarithm of the float x. If the argument is less than or<br />

equal to zero or too large, the behavior is undefined.<br />

Note on error handling:<br />

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

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

the error using the perror function.<br />

Domain error occurs in the following cases:<br />

log10: when the argument is negative<br />

Availability:<br />

All devices<br />

216

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

Saved successfully!

Ooh no, something went wrong!