LlLog

De DigiWiki.

default
{
  state_entry()
  {
    float num1 = llFrand(100.0);
 
    llOwnerSay("The natural logarithm of " + (string)num1 + " is " + (string)llLog(num1));
  }
}
float findexp(float result, float base)
{
    return llLog(result)/llLog(base);
}
default
{
    touch_start(integer total_number)
    {
        llSay(0, (string)findexp(8.0,2.0));
        //returns 3.0
    }
}
Outils personnels
  • Cette page a été consultée 445 fois.
donate
Google Ads