Difference between revisions of "LlAbs/it"

From Second Life Wiki
Jump to navigation Jump to search
(New page: {{LSL_Function |func=llAbs |sort=Abs |func_id=6|func_sleep=0.0|func_energy=10.0 |func_footnote |p1_type=integer |p1_name=val |p1_desc=Qualsiasi valore intero |return_type=integer |return_t...)
 
Line 60: Line 60:
|also_articles={{LSL DefineRow||{{Wikipedia|Valore assoluto}}|}}
|also_articles={{LSL DefineRow||{{Wikipedia|Valore assoluto}}|}}
|notes
|notes
|cat1=Math
|cat1=Math/it
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 04:59, 2 April 2008

Summary

Function: integer llAbs( integer val );

Returns an integer il valore assoluto di val.

• integer val Qualsiasi valore intero

Examples

<lsl> // Questo è un semplice esempio. default {

   state_entry()
   {
       llSay(0,"Il valore assoluto di -4 è: "+(string)llAbs(-4) );
   }

} </lsl>

<lsl> // Questo è un esempio più elaborato. ShowAbsolute(integer X) {

   string Message = "llAbs("
       + (string)X
       + ") --> "
       + (string)llAbs(X);
   llSay(PUBLIC_CHANNEL, Message);

} default {

   state_entry()
   {
       ShowAbsolute(-3);
       ShowAbsolute(5);
       ShowAbsolute(-20);
       ShowAbsolute(0);
   }

} </lsl>

<lsl> // Questo è il risultato prodotto dall'esempio più elaborato: Oggetto di Prova: llAbs(-3) --> 3 Oggetto di Prova: llAbs(5) --> 5 Oggetto di Prova: llAbs(-20) --> 20 Oggetto di Prova: llAbs(0) --> 0

</lsl>

See Also

Functions

•  llFabs float versione di llAbs

Articles

•  "Wikipedia logo"Valore assoluto

Deep Notes

Search JIRA for related Issues

Signature

function integer llAbs( integer val );