Content-Length: 19067 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Mathf.Log10.html
| Parameter | Description |
|---|---|
| f | Value to compute the logarithm for. |
float Result of the logarithm operation.
Returns the base 10 logarithm of a specified number.
Computing the base-10 logarithm of f is the inverse operation to raising 10 to the power of the output of this function. This means that 'Mathf.Pow(10, x) = f', with x being the output of this function.
Additional resources: Pow.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { // logarithm of 100 in base 10 // Prints 2 print(Mathf.Log10(100)); } }
Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Mathf.Log10.html
Alternative Proxies: