Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Common Logarithm

Status
Not open for further replies.

p3aul

Instructor
Jul 17, 2004
16
0
0
US
I need to get the common logarithm of a variable. Looking over the internet, I see examples that *should* work, but don't.

This what I started out with:

float lg;
float sg;

sg = Log10(lg);

I got this:
[BCC32 Error] Unit1.cpp(77): E2268 Call to undefined function 'Log10'

On another site I saw where the variables should be of type, Extended.

When I typed in Extended sg; I expected to see the Extended in boldface(Extended) but it wasn't. I also got the same error msg as before.
Can someone clear this up for me?
Thanks,
Paul



The Bad News: Time Flies
The Good News: You are the Pilot
 
For got to mention I use #includes
<math.h>
<vcl.h>
<sysmac.h>

The Bad News: Time Flies
The Good News: You are the Pilot
 
Never mind I should have used log10() instead of Log10()!


The Bad News: Time Flies
The Good News: You are the Pilot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top