Home Page


BASIC Handbook

Basic2 Commands
Disk Drives
PEEK's and POKE's
RAM Memory Map
ROM Memory Map
Screen Display
Sprite
ASCII and CHR$ Codes

eMail
email5-commodorecheetah.co.uk

Note: You will need to replace the '-' with the @ symbol.
This is to minimize spam.

My BASIC Quick Reference Guide

LOG
Abbreviation:

TYPE: Floating-Point Function
FORMAT: LOG(<numeric>)

Action: Returns the natural logarithm (log to the base of e) of the argument. If the value of the argument is zero or negative the BASIC error message ?ILLEGAL QUANTITY will occur.

EXAMPLES of LOG Function:

25 PRINT LOG(45/7)
1.86075234

10 NUM=LOG(ARG)/LOG(10) (Calculates the LOG of ARG to the base 10)


Commodore Cheetah made by Allen Monks, started in the year 2000.