ホーム
おまかせ表示
ログイン
設定
脳科学辞典について
免責事項
脳科学辞典
検索
テンプレート: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
に戻る。