LlAbs/ja

From Second Life Wiki
< LlAbs
Revision as of 06:30, 28 February 2008 by Asuka Neely (talk | contribs) (New page: {{multi-lang}}{{LSL_Function/ja |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=Any integer value |return_type=intege...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

要約

関数: integer llAbs( integer val );

valの整数を integer で返します。

• integer val Any integer value

サンプル

<lsl> // Here is a simple example. default {

   state_entry()
   {
       llSay(0,"The absolute value of -4 is: "+(string)llAbs(-4) );
   }

} </lsl>

<lsl> // Here's a more elaborate example. 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> // Here's the output produced by the more elaborate example: Test Object: llAbs(-3) --> 3 Test Object: llAbs(5) --> 5 Test Object: llAbs(-20) --> 20 Test Object: llAbs(0) --> 0

</lsl>

関連項目

関数

•  llFabs llAbsのfloat

記事

•  "Wikipedia logo"Absolute_value

特記事項

Search JIRA for related Issues

Signature

function integer llAbs( integer val );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。