Method Log
Log(Int64, Int32)
Returns x <= 0 ? 0 : Math.Floor(Math.Log(x) / Math.Log(base))
.
Declaration
public static int Log(long x, int base)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | x | |
System.Int32 | base | Must be |
Returns
Type | Description |
---|---|
System.Int32 |
Log(Double, Double)
Calculates logarithm in a given base
with doubles.
Declaration
public static double Log(double base, double x)
Parameters
Type | Name | Description |
---|---|---|
System.Double | base | |
System.Double | x |
Returns
Type | Description |
---|---|
System.Double |