ホーム
おまかせ表示
ログイン
設定
脳科学辞典について
免責事項
脳科学辞典
検索
テンプレート:Roundのソースを表示
←
テンプレート:Round
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
<includeonly>{{padright:{{#expr:({{{1}}})round({{{2}}})}}{{#ifexpr:(({{{1}}})round({{{2}}}))round0=({{{1}}})round({{{2}}})|.}}|{{#expr:{{oom|abs({{{1}}})}}+2+({{{2}}})+({{{1}}}<0)}}}}</includeonly><noinclude> This template rounds a number, producing corresponding trailing zeros: *{{xpsoc|round|1|2}} *{{xpsoc|round|1.2|2}} *{{xpsoc|round|1.23|2}} *{{xpsoc|round|1.234|2}} *{{xpsoc|round|-1|2}} *{{xpsoc|round|-1.2|2}} *{{xpsoc|round|-1.23|2}} *{{xpsoc|round|-1.234|2}} ==Technical details== The method is based on the result of #expr and adds a point and zeros when needed. [[Category:Mathematical templates|{{PAGENAME}}]] </noinclude>
テンプレート:Round
に戻る。