How to Get Logarithm Base 10 Using LOG(x#)/LOG(10#) in BASIC (31660)
This article was previously published under Q31660
SUMMARY
Microsoft BASIC offers a LOG() function that returns only the natural
logarithm, that is, the logarithm to the base e. The number e is a
constant approximately equal to 2.718282.
To return a logarithm base b, you can use the following general
mathematical formula:
(Log base b of x) = (natural log of x) / (natural log of b)
To return a logarithm base 10, you can use the following specific
mathematical formula:
(Log base 10 of x) = (natural log of x) / (natural log of 10)
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB31660 |
|