Decimal logarithm in C#

var number = 1000;
var result = Math.Log10(number);
//result is 3