In old QBasic I could use the LOG function to get the base-10 log of a number. So I would have something like this...

sglFormula = 150 - (LOG(intTemp + 10) * 30)

... the LOG function would give me the log base-10 of a variable (intTemp) plus 10.

How do I do this in VB.NET. Do I have to create my own log function and, if so, what would it look like?

Thanks

Use the math namespace,

Math.Log10(x)

Where x is your number

Wow, that's easy. Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.