テンプレート:Formatnum/1/docのソースを表示
←
テンプレート:Formatnum/1/doc
ナビゲーションに移動
検索に移動
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
{{Documentation subpage}} This template is the core template of [[Template:Formatnum]]. That template handles the empty string and invalid numbers, and the possible minus sign, so that this template needs to handle valid non-negative numbers only. Also Formatnum applies rounding according to parameter ''prec'', if defined, and increases the absolute value so that this template can truncate after a total of 16 digits, and supplies this template with the log to the base 10, rounded down, of this final number. {{tdoc |1=1 |1d=non-negative number |1stat=required |2=2 |2d=language code |2def=value of <nowiki>{{int:Lang}}</nowiki> |3=sep |3d=set to any non-empty value to produce a result without thousands separators |4=prec |4d=number of digits after the decimal point to show |4def=if empty or undefined: 0 |5=oom |5d=log to the base 10, rounded down, of the number. |5def= |i18n-method=- |i18n-desc= |seealso= |relieson=<nowiki/> *[[Template:FormatnumDigit]] *[[Template:FormatnumSigns]] |examples=<nowiki/> *{{xpsoc|formatnum|1234567890.456789789}} *{{formatnum/1|(abs(1234567890.456789789)+5*10^(-16+9))||sep=|prec=|oom=9}} *{{xpsoc|#expr:(abs(.456789789)+5*10^(-16+9))}} *{{xpsoc|formatnum|9999999999.99999}} *{{xpsoc|formatnum/1|(9999999999.99999+5*10^(-16+9))|n1=oom|v1=9}} *{{xpsoc|#expr:(abs(.99999)+5*10^(-16+9))}} *{{xpsoc|oom|{{#expr:(abs(9999999999.99999)+5*10^(-16+9))}}}} *{{xpsoc|formatnum|9999999999.999999}} *{{xpsoc|formatnum/1|(9999999999.999999+5*10^(-16+9))|n1=oom|v1=9}} *{{xpsoc|#expr:(abs(.999999)+5*10^(-16+9))}} *{{xpsoc|oom|(abs(9999999999.999999)+5*10^(-16+9))}} Compare: **<code><nowiki>{{oom|{{#expr:(abs(9999999999.999999)+5*10^(-16+9))}}}}</nowiki></code> → {{oom|{{#expr:(abs(9999999999.999999)+5*10^(-16+9))}}}} **{{xpsoc|formatnum/1|(9999999999.999999+5*10^(-16+9))|n1=oom|v1=10}} *{{xpsoc|formatnum|9999999999.9999999}} *{{xpsoc|formatnum/1|(9999999999.9999999+5*10^(-16+9))|n1=oom|v1=10}} *{{xpsoc|#expr:(abs(.9999999)+5*10^(-16+9))}} *{{xpsoc|oom|(abs(9999999999.9999999)+5*10^(-16+9))}} *{{xpsoc|formatnum|123456789012.12}} *{{xpsoc|formatnum|12345678901.12}} *{{xpsoc|formatnum|1234567890.12}} *{{xpsoc|formatnum|234567890.12}} *{{xpsoc|formatnum|34567890.12}} *{{xpsoc|formatnum|4567890.12}} *{{xpsoc|formatnum|567890.12}} *{{xpsoc|formatnum|67890.12}} *{{xpsoc|formatnum|7890.12}} *{{xpsoc|formatnum|890.12}} *{{xpsoc|formatnum|90.12}} *{{xpsoc|formatnum|4.12}} *{{xpsoc|formatnum|4.1}} *{{xpsoc|formatnum|4}} *{{xpsoc|formatnum|1234567890.12345}} *{{xpsoc|formatnum|1234567890.123456}} *{{xpsoc|formatnum|1234567890|n1=prec|v1=3}} *{{xpsoc|formatnum|1234567890.1|n1=prec|v1=3}} *{{xpsoc|formatnum|1234567890.12|n1=prec|v1=3}} *{{xpsoc|formatnum|1234567890.123|n1=prec|v1=3}} *{{xpsoc|formatnum|1234567890.1234|n1=prec|v1=3}} *{{xpsoc|formatnum|1234567890.12345|n1=prec|v1=3}} *{{xpsoc|formatnum|1234567890.123456|n1=prec|v1=3}} *{{xpsoc|formatnum|0.000123456|n1=prec|v1=3}} *{{xpsoc|formatnum|9999999999.9999}} *{{xpsoc|formatnum|9999999999.99999}} *{{xpsoc|formatnum|9999999999.999999}} *{{xpsoc|formatnum|9999999999.9999999}} *{{xpsoc|formatnum|-6.7e-8}} *{{xpsoc|formatnum|0}} *{{xpsoc|formatnum|0|bn}} *{{xpsoc|formatnum|6.7e-18}} *{{xpsoc|formatnum|6.7e-8}} *{{xpsoc|formatnum|6.7e8}} *{{xpsoc|formatnum|1.234567890123456e17}} *{{xpsoc|formatnum|6.7e17}} *{{xpsoc|formatnum|1.234567890123456e18}} *{{xpsoc|formatnum|6.7e18}} *{{xpsoc|formatnum|e8}} (not a valid number, returns the input) *{{xpsoc|formatnum}} }} <includeonly>[[Category:Mathematical templates]]</includeonly>
テンプレート:Formatnum/1/doc
に戻る。
ナビゲーション メニュー
個人用ツール
ログイン
名前空間
テンプレート
議論
日本語
表示
閲覧
履歴表示
その他
検索
案内
索引
脳科学辞典について
最近完成した項目
編集履歴
執筆にあたって
引用の仕方
著作権について
免責事項
問い合わせ
各学会編集のオンライン用語辞典
About us (in English)
Twitter (BrainScienceBot)
ツール
リンク元
関連ページの更新状況
特別ページ
ページ情報
他のプロジェクト