You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
villares edited this page May 24, 2020
·
4 revisions
Nome
log()
Exemplos
voidsetup() {
int i =12;
println(log(i));
println(log10(i));
}
// Calculates the base-10 logarithm of a number floatlog10 (intx) {
return (log(x) /log(10));
}
Descrição
Calcula o logaritmo natural (logaritmo na base e) de um número. Esta função espera que valoressejam maiores que 0.0.
Sintaxe
log(valor)
Parâmetros
valor
int ou float: número dever ser maior que 0.0