Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!srhqla!demott!kdq From: kdq@demott.COM (Kevin D. Quitt) Newsgroups: comp.sys.ibm.pc.programmer Subject: Re: How to calculate LOG10 in BASIC? Message-ID: <301@demott.COM> Date: 14 Jun 90 20:03:16 GMT References: <7196.267754e0@eva.slu.se> Reply-To: kdq@demott.COM (Kevin D. Quitt) Organization: DeMott Electronics Co., Van Nuys CA Lines: 26 In article <7196.267754e0@eva.slu.se> jn@eva.slu.se (Jan Nilsson) writes: >Hello programmers! > >Sorry to disturb You with a (I don't know if I dare say it..) BASIC >question. I want to calculate the common logarithm (LOG10) and BASIC >only support LOG, the natural logarithm. Could it be calculated in >another way? > Nothin' to do with BASIC. All you need is a magic number: 0.4342944818 (log10 of e) now, since the log10 of a = log10 of e * ln of a et voila! -- _ Kevin D. Quitt Manager, Software Development 34 12 N 118 27 W DeMott Electronics Co. 14707 Keswick St. Van Nuys, CA 91405-1266 VOICE (818) 988-4975 FAX (818) 997-1190 MODEM (818) 997-4496 Telebit PEP last demott!kdq kdq@demott.com 96.37% of the statistics used in arguments are made up.