Basic programming guide – Remote Processing BASIC for the CX-10 Modbus User Manual
Page 40

BASIC PROGRAMMING GUIDE
2-31
LOG
Syntax:
LOG (expr)
Function:
Returns the natural logarithm (base "e") of expr which must evaluate to greater than zero. Calculated
to seven significant digits.
Mode:
Command, run
Use:
PRINT LOG(COS(0))
ERRORS
ARITH. UNDERFLOW expr or result is less than BASIC-52's smallest floating-point value of ± 1E-127
ARITH. OVERFLOW
expr or result is greater than BASIC-52's largest floating point value of ±
.99999999E+127
BAD ARGUMENT
Attempt to take LOG() of zero
EXAMPLE
100
PRINT EXP(-200), LOG(1.383901E-87)
>run
1.383901 E-87 -200