### Revision history for KeyPgLog

##### Additions:

There can be some confusion with this notation given that in mathematics the natural logarithm function is usually denoted **LN**, while the logarithm of base 10 is often denoted as LOG. FreeBASIC, like most computer programming languages, uses LOG to denote the natural logarithm. The required //number// argument can be any valid numeric expression greater than zero. If ##//number//## is zero, FreeBASIC returns a special value representing "-infinity", printing like "-Inf". If ##//number//## is less than zero, ##**Log**## returns a special value representing "not defined", printing like """NaN""" or "IND", exact text is platform dependent. If ##//number//## is an uninitialized variable, -infinity is returned.

##**Log**## can be overloaded as operator to accept user-defined types.

##**Log**## can be overloaded as operator to accept user-defined types.

##### Deletions:

**Log** can be overloaded to accept user-defined types.

##### Additions:

**Log** can be overloaded to accept user-defined types.

##### Additions:

[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Log** [[KeyPgCdecl|cdecl]] ( [[KeyPgByval|byval]] //number// [[KeyPgAs|as]] [[KeyPgDouble|double]] ) [[KeyPgAs|as]] [[KeyPgDouble|double]]

- ##[[KeyPgExp|Exp]]##

- ##[[KeyPgExp|Exp]]##

##### Deletions:

- ##[[KeyPgExp Exp]]##

##### Additions:

//result// = **Log**( //number// )

##### Deletions:

##### Additions:

There can be some confusion with this notation given that in mathematics the natural logarithm function is usually denoted **LN**, while the logarithm of base 10 is often denoted as LOG. FreeBASIC, like most computer programming languages, uses LOG to denote the natural logarithm. The required //number// argument can be any valid numeric expression greater than zero. If ##//number//## is zero, FreeBASIC returns a special value representing "-infinity", printing like "-Inf". If ##//number//## is less than zero, **Log** returns a special value representing "not defined", printing like """NaN""" or "IND", exact text is platform dependent. If ##//number//## is an uninitialized variable, -infinity is returned.

##### Deletions:

##### Additions:

There can be some confusion with this notation given that in mathematics the natural logarithm function is usually denoted **LN**, while the logarithm of base 10 is often denoted as LOG. FreeBASIC, like most computer programming languages, uses LOG to denote the natural logarithm. The required //number// argument can be any valid numeric expression greater than zero. If ##//number//## is zero, FreeBASIC returns a special value representing "-infinity", printing like "-Inf". If ##//number//## is less than zero, FreeBASIC returns a special value representing "not defined", printing like """NaN""" or "IND". If ##//number//## is an uninitialized variable, -infinity is returned.