Reference for Wiring version 0024+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name

log()

Examples
double c = log(3);  // Sets c to 1.09
double d = log(4);  // Sets d to 1.38
Description The log() function calculates the natural logarithm of argument x
Syntax
log(x)
Parameters
x double, float or int
Returns double
Usage Application
Updated on January 11, 2010 09:58:47pm PST

Creative Commons License