kytschBASIC

Put down that phone!
Please view me on real computer.

LOG
FLOAT, BASE (OPTIONAL)

This returns the natural logarithm of a float. If the base is supplied then the common logarithm.

Example

PRINT LOG(10)

LINE BREAK

PRINT LOG(10, 2)

Output

2.302585092994
3.3219280948874

See also

ABS | ACOS | ASIN | ATAN | BIN | COS | EXP | FRAC | HCOS | HEX | HSIN | HTAN | LOG10 | RND | SGN | SQR | SIN | TAN