Log10(float)
Returns the base 10 logarithm of a specified number.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static float Log10(float f)
Parameters
Returns
Type | Description |
|---|---|
| float |
Examples
using UnityEngine;public class Example : MonoBehaviour{ void Start() { // logarithm of 100 in base 10 // Prints 2 print(Mathf.Log10(100)); }}