选择D啦,根据数学对数公式转换一下,然后VB中的Log函数默认是以e为底的
微软官方文档MSDN就是这样说的
Log Function
Returns a Double specifying the natural logarithm of a number.
返回一个自然对数函数的双精度数
The natural logarithm is the logarithm to the base e. The constant e is approximately 2.718282.
自然对数是以 e为底的
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:
你可以计算以N为底的对数x通过以下公式
Logn(x) = Log(x) / Log(n)
所以D是绝对正确地!
低调接分,哈哈~
The following example illustrates a custom Function that calculates base-10 logarithms:
Static Function Log10(X)
Log10 = Log(X) / Log(10#)
End Function