Log10()

Syntaxe

Resultat.f(d) = Log10(Nombre.f(d))
Description
Renvoie le logarithme base 10 d'un nombre.

Arguments

Nombre.f ou Nombre.d Le nombre à virgule flottante (float ou double)

Valeur de retour

Renvoie le logarithme en base 10.

Exemple

  Debug Log10(10)   ; Affiche '1.0'
  Debug Log10(1)    ; Affiche '0.0'
  Debug Log10(0)    ; Affiche '-Infinity'
  Debug Log10(-0)   ; Affiche '-Infinity'
  Debug Log10(-10)  ; Affiche 'NaN'
  
  ;Astuce: Log10 permet de connaître le 'nombre de 0' d'une valeur.
  Debug Log10(1000)   ; Affiche '3.0' 
  Debug Log10(0.001)  ; Affiche '-3.0' 

Voir aussi

Log(), Exp()

OS Supportés

Tous

<- Log() - Math Index - Mod() ->