static function Log (f : float, p : float) : float
Description
Returns the logarithm of a specified number in a specified base.
using UnityEngine;
using System.Collections;
public class example :
MonoBehaviour {
void Awake() {
print(
Mathf.Log(6, 2));
}
}
static function Log (f : float) : float
Description
Returns the natural (base e) logarithm of a specified number.
using UnityEngine;
using System.Collections;
public class example :
MonoBehaviour {
void Awake() {
print(
Mathf.Log(10));
}
}