LlLog/fr

From Second Life Wiki

Jump to: navigation, search

Fonction: float llLog( float val );

Renvoie un correspondant au logarithme de val.
si val <= 0, la fonction renvoie 0.0.

• float val


Pour un logarithme de base 10 utilisez llLog10.

Exemples

default
{
  state_entry()
  {
    float num1 = llFrand(100.0);

    llOwnerSay("Le logarithme de " + (string)num1 + " est " + (string)llLog(num1));
  }
}

Voir également

Fonctions

•  llLog10 Renvoie un logarithme en base 10
•  llPow Renvoie une puissance
•  llSqrt Renvoie une racine carrée

Articles

•  Wikipedia:Natural_logarithm Article wikipedia sur le logarithme
Personal tools