Difference between revisions of "LlPow/ja"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 10: Line 10:
|caveats=* スクリプトがクラッシュする可能性があります。
|caveats=* スクリプトがクラッシュする可能性があります。
|examples=
|examples=
<lsl>
<source lang="lsl2">
default {
default {
     state_entry() {
     state_entry() {
Line 17: Line 17:
     }
     }
}
}
</lsl>
</source>
|helpers
|helpers
|also_functions={{LSL DefineRow||{{LSLG/ja|llLog}}|}}
|also_functions={{LSL DefineRow||{{LSLG/ja|llLog}}|}}

Latest revision as of 07:21, 25 February 2016

要約

関数: float llPow( float base, float exponent );

baseexponent 乗したもの (baseexponent) を float で返します。

• float base
• float exponent

計算の結果、虚数となった場合は ((exponent != (integer)exponent) && (base < 0.0)) 、 算術エラー となります。

警告

  • スクリプトがクラッシュする可能性があります。
All Issues ~ Search JIRA for related Bugs

サンプル

default {
     state_entry() {
          llOwnerSay("llPow(5, .5) (" + (string)llPow(5, .5) + ") is equal to llSqrt(5) (" 
                      + (string)llSqrt(5) + ").");
     }
}

関連項目

関数

•  llLog
•  llLog10
•  llSqrt

特記事項

Search JIRA for related Issues

Signature

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