Skip to content

format

typescript
Mathf.Log10(val)

class: Mathf

description

Returns the logarithm of x to the base 10.

parameter

param_nametypedescription
valnumberThe specified value.

return

typedescription
numberThe logarithm of x to the base 10.

code example

typescript
// Logarithm of x to the base 10
let log10 = Mathf.Log10(1); // log10 = 0