A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Log10 function



 
 
Thread Tools Display Modes
  #1  
Old May 28th, 2004, 07:09 PM
Andy
external usenet poster
 
Posts: n/a
Default Log10 function

In Access 2000 there was a Log10 function, this seems to
have disapeared in the 2002 version. The Log function in
2002 returns the Natural Log. Does anyone know how to do
a Log10 in 2002?

Thanks,
Andy
  #2  
Old May 28th, 2004, 07:49 PM
Dan Artuso
external usenet poster
 
Posts: n/a
Default Log10 function

HI Andy,
You can get the log10 of a number like this:

Ln(somenumber)/ln(10)

In general:

x = number
y = base you want to use

Logy(x) = ln(x)/ln(y)

Well, I just looked in Help and found this:
You can calculate base-n logarithms for any number x by dividing the natural logarithm of x by the natural logarithm of n as
follows:

Logn(x) = Log(x) / Log(n)

The following example illustrates a custom Function that calculates base-10 logarithms:

Static Function Log10(X)
Log10 = Log(X) / Log(10#)
End Function
HTHDan Artuso, MVP
"Andy" wrote in message ...
In Access 2000 there was a Log10 function, this seems to
have disapeared in the 2002 version. The Log function in
2002 returns the Natural Log. Does anyone know how to do
a Log10 in 2002?

Thanks,
Andy



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.