Difference between revisions of "LlFabs/ja"
< LlFabs
Jump to navigation
Jump to search
Asuka Neely (talk | contribs) m |
Mizu Melody (talk | contribs) m |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|func_id=7|func_sleep=0.0|func_energy=10.0 | |func_id=7|func_sleep=0.0|func_energy=10.0 | ||
|func_footnote | |func_footnote | ||
|p1_type=float|p1_name=val|p1_desc= | |p1_type=float|p1_name=val|p1_desc=何らかの有効なfloat値 | ||
|return_type=float | |return_type=float | ||
|return_text='''val''' | |return_text='''val'''の絶対値 | ||
|spec | |spec | ||
|caveats | |caveats | ||
|examples= | |examples= | ||
< | <source lang="lsl2"> | ||
default | default | ||
{ | { | ||
state_entry() | state_entry() | ||
{ | { | ||
llSay(0,"The (Float)absolute value of -4.5 is: "+(string)llFabs(-4.5) ); | llSay(0,"The (Float)absolute value of -4.5 is: " | ||
+(string)llFabs(-4.5) ); | |||
} | } | ||
} | } | ||
// returns : | // returns : | ||
// The (Float)absolute value of -4.5 is: 4.500000 | // The (Float)absolute value of -4.5 is: 4.500000 | ||
</ | </source> | ||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow|| | |also_functions={{LSL DefineRow||{{LSLG/ja|llAbs}}|llFabsの{{LSLG/ja|integer}}版}} | ||
|also_events | |also_events | ||
|also_articles={{LSL DefineRow||{{Wikipedia| | |also_articles={{LSL DefineRow||{{Wikipedia|1=絶対値|lang=ja}}|}} | ||
|notes | |notes | ||
|cat1=Math | |cat1=Math |
Latest revision as of 07:10, 18 December 2015
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
サンプル
default
{
state_entry()
{
llSay(0,"The (Float)absolute value of -4.5 is: "
+(string)llFabs(-4.5) );
}
}
// returns :
// The (Float)absolute value of -4.5 is: 4.500000
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。