This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
Log

Log 


 

Log ( number ) -> Function result 
Parameter Type   Description
number  Real in Number for which to return the log
Function result  Real in Log of number

Log returns the natural (Napierian) log of number. Log is the inverse function of Exp.

Note: 4D provides the predefined constant e number (2.71828...).

Example  

The following line displays 1:

 ALERT(String(Log(Exp(1)))



See also 

Exp

 
PROPERTIES 

Product: 4D
Theme: Math
Number: 22

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: < 4D v6

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)