Version: 2023.1
public static float Log10 (float f);

描述

返回指定的数字的以 10 为底的对数。

using UnityEngine;

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