Community QBasic

Rebooting the QBasic we all know and love!


Project maintained by Cory Smith

LOG

Returns the natural logarithm of a numeric expression.

Syntax

LOG(numeric_expression)

Comments

numeric_expression is any numeric expression greater than 0.

The natural logarithm is the logarithm to the base e.

Examples

PRINT LOG(1), LOG(EXP(1))
0

See Also