Difference between revisions of "LlAbs/ja"

From Second Life Wiki
Jump to navigation Jump to search
(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...)
 
m
Line 10: Line 10:
|return_text='''val'''の整数
|return_text='''val'''の整数
|spec
|spec
|caveats
|caveats=*-2147483648のllAbsは-2147483648で、これはなぜなら2147483648は有効なinteger値ではないからです。
|examples=<lsl>
|examples=<lsl>
// Here is a simple example.
// Here is a simple example.
Line 60: Line 60:
|also_articles={{LSL DefineRow||{{Wikipedia|Absolute_value}}|}}
|also_articles={{LSL DefineRow||{{Wikipedia|Absolute_value}}|}}
|notes
|notes
|cat1=Math/ja
|cat1=Math
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 04:21, 17 April 2008

要約

関数: integer llAbs( integer val );

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

• integer val Any integer value

警告

  • -2147483648のllAbsは-2147483648で、これはなぜなら2147483648は有効なinteger値ではないからです。
All Issues ~ Search JIRA for related Bugs

サンプル

<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の関連した項目が参考になるかもしれません。