log

 
 
 

Returns the natural logarithm of a number, logenumber. The natural logarithm uses the constant e, which is 2.718.

float log(float number)

number is the positive number for which you want the natural logarithm.

Examples

log(10)

Returns 2.303.

log(2.718282845904)

Returns 1.000.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License