I am consistently getting problems with VB's logarithm function. In fact, on my TI-89, log(1.31) returns 0.11727..., not the number you gave, not 0.27... I am trying to write a program to calculate gain changes in microphones, given by the formula 20 * log(old distance / new distance) and the program is returning the wrong values. Any suggestions?