テンプレート:Digのソースを表示
←
テンプレート:Dig
ナビゲーションに移動
検索に移動
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
<includeonly>{{#expr:({{{1}}})/10^({{{2}}})mod10}}</includeonly><noinclude> This template gives the numeric value of the digit in a particular position. It gives the empty string for positions to the left of the number. It tries to detect the number of decimals, giving the empty string for positions to the right of the number. *The first parameteris the number. *The second parameter is the position of the digit to be produced, where one unit represents 10^position (0 just left of the decimal point, -1 just right of it, etc. A number like 1234.5678 is a borderline case between this and 1234,5677999... Since results for the various positions are usually used in combination, e.g. for formatting the number in a template like [[Template:Formatnum]], consistency in a borderline case is important, so, in the example, not giving 8 as 4th decimal and 9 as 5th. A secondary objective is to try to avoid giving for 1234.5678 the digits of 1234.5677999... In a template like formatnum it may or may not be useful to use nesting in the treatment of the decimals, ensuring that after deciding for a particular decimal position that it is beyond the last digit, so the empty string is produced, further positions are not considered. This may be useful for consistency and efficiency, or it may not be needed and better be avoided because of the limit on the expansion depth. ==Examples== *{{xpdop3p3c|d=|dig|1234.5678|||-14}} *{{xpdop3p3c|d=|dig|1234.5678|||-13}} *{{xpdop3p3c|d=|dig|1234.5678|||-12}} *{{xpdop3p3c|d=|dig|1234.5678|||-11}} *{{xpdop3p3c|d=|dig|1234.5678|||-10}} *{{xpdop3p3c|d=|dig|1234.5678|||-9}} *{{xpdop3p3c|d=|dig|1234.5678|||-8}} *{{xpdop3p3c|d=|dig|1234.5678|||-7}} *{{xpdop3p3c|d=|dig|1234.5678|||-6}} *{{xpdop3p3c|d=|dig|1234.5678|||-5}} *{{xpdop3p3c|d=|dig|1234.5678|||-4}} *{{xpdop3p3c|d=|dig|1234.5678|||-3}} *{{xpdop3p3c|d=|dig|1234.5678|||-2}} *{{xpdop3p3c|d=|dig|1234.5678|||-1}} *{{xpdop3p3c|d=|dig|1234.5678|||0}} *{{xpdop3p3c|d=|dig|1234.5678|||1}} *{{xpdop3p3c|d=|dig|1234.5678|||2}} *{{xpdop3p3c|d=|dig|1234.5678|||3}} *{{xpdop3p3c|d=|dig|1234.5678|||4}} *{{xpdop3p3c|d=|dig|1234.5678|||5}} *{{xpdop3p3c|d=|dig|1234.5678|||6}} *{{xpdop3p3c|d=|dig|1234.5678|||7}} *{{xpdop3p3c|d=|dig|1234.5678|||8}} *{{xpdop3p3c|d=|dig|1234.5678|||9}} *{{xpdop3p3c|d=|dig|1234.5678|||10}} *{{xpdop3p3c|d=|dig|1234.5678|||11}} *{{xpdop3p3c|d=|dig|1234.5678|||12}} *{{xpdop3p3c|d=|dig|1234.5678|||13}} *{{xpdop3p3c|d=|dig|1234.5678|||14}} [[Category:Mathematical templates|{{PAGENAME}}]] </noinclude>
テンプレート:Dig
に戻る。
ナビゲーション メニュー
個人用ツール
ログイン
名前空間
テンプレート
議論
日本語
表示
閲覧
履歴表示
その他
検索
案内
索引
脳科学辞典について
最近完成した項目
編集履歴
執筆にあたって
引用の仕方
著作権について
免責事項
問い合わせ
各学会編集のオンライン用語辞典
About us (in English)
Twitter (BrainScienceBot)
ツール
リンク元
関連ページの更新状況
特別ページ
ページ情報
他のプロジェクト