「テンプレート:Int」の版間の差分

提供:脳科学辞典
ナビゲーションに移動 検索に移動
(1版 をインポートしました)
(1版)
(他の1人の利用者による、間の1版が非表示)
1行目: 1行目:
<onlyinclude>{{<includeonly>safesubst:</includeonly>#invoke:Int|renderIntMessage|{{{1}}}|missing={{{missing|}}}|lang={{{lang|}}}}}</onlyinclude>
<includeonly>{{#ifexpr:({{#if:{{{2|}}}|(({{{1}}}))e({{oom|abs({{{2}}})}}+1)+{{{2}}}|{{{1}}}}})>=2^63or({{#if:{{{2|}}}|(({{{1}}}))e({{oom|abs({{{2}}})}}+1)+{{{2}}}|{{{1}}}}})<-2^63|({{#if:{{{2|}}}|(({{{1}}}))e{{#expr:(ln(1{{{2}}}-{{{2}}})/ln10)round0}}+{{{2}}}|{{{1}}}}})|{{#if:{{{2|}}}|trunc{{{1}}}e{{#expr:(ln(1{{{2}}}-{{{2}}})/ln10)round0}}+trunc{{{2}}}|trunc{{{1}}}}}}}</includeonly><noinclude>
{{Documentation}}
 
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
This template can be used for entering a large integer. It is similar to [[Template:Trunc]], but requires plain sequences of digits as parameters, not expressions. Another difference is that this template Int treats leading zeros in the second parameter as digits in the number, due to the use of [[Template:Len]].
[[Category:Mathematical templates|{{PAGENAME}}]]</noinclude>

2015年3月14日 (土) 12:15時点における版


This template can be used for entering a large integer. It is similar to Template:Trunc, but requires plain sequences of digits as parameters, not expressions. Another difference is that this template Int treats leading zeros in the second parameter as digits in the number, due to the use of Template:Len.