Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Mathf.Log10

Switch to Manual
public static function Log10(f: float): float;

Parameters

Description

Returns the base 10 logarithm of a specified number.

	// logarithm of 100 in base 10
	// Prints 2
	print(Mathf.Log10(100));