static float GetLogValue (float number, float baseNum) { return (float)(Math.Log (number) / Math.Log (baseNum)); }