| 
       LOG ( expression  , base  )
       | 
| 
       DEFINE VARIABLE base   AS DECIMAL NO-UNDO FORMAT ">>>,>>>.9999".
        DEFINE VARIABLE number AS DECIMAL NO-UNDO. REPEAT: UPDATE base VALIDATE(base > 1, "Base must be greater than 1"). REPEAT: UPDATE number VALIDATE(number > 0, "Number must be positive"). DISPLAY number LOG(number, base) LABEL "LOG(NUMBER, BASE)". END. END. | 
 The LOG function is accurate to approximately 10 decimal places.
The LOG function is accurate to approximately 10 decimal places.
   After converting the base and exponent to floating-point format, the LOG function uses standard system routines. On some machines, the logarithm routines do not handle large numbers well and might cause your terminal to hang.
After converting the base and exponent to floating-point format, the LOG function uses standard system routines. On some machines, the logarithm routines do not handle large numbers well and might cause your terminal to hang.