Mathf.Log10

Switch to Manual

Declaration

public static float Log10(float f);

Description

Returns the base 10 logarithm of a specified number.

using UnityEngine;

public class Example : MonoBehaviour { void Start() { // logarithm of 100 in base 10 // Prints 2 print(Mathf.Log10(100)); } }

Did you find this page useful? Please give it a rating: