テンプレート:Numのソースを表示
←
テンプレート:Num
ナビゲーションに移動
検索に移動
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
<includeonly>{{#switch:{{#expr:{{{1}}}}}|INF=INF|-INF=-INF|{{#ifexpr:({{{1}}})=trunc({{{1}}})|{{#expr:trunc({{{1}}})}}|{{#switch:1|{{#expr:({{{1}}})>0}}={{num/1|({{{1}}})}}|{{#expr:({{{1}}})<0}}=-({{num/1|-({{{1}}})}})|0}}}}}}</includeonly><noinclude> This template has as parameter an expression and produces a decimal number. If the expression produces a number of type integer, the template returns exactly that integer. If the expression produces a float, the template returns the result with a format that is accepted in an expression, and with an accuracy such the system would round it to the same float; thus if applied to a result of the template, the template returns the same. The format (in the examples shown with [[Template:Numfh]]) is ordinary decimal format, because scientific notation with a fixed normalisation in general does not allow a representation of the exact float, see [[Help:Calculation accuracy#Reconstruction of an internal number]]. For any float, 17 significant digits are enough to reconstruct it. Therefore we get for example: *{{xpsoc|numfh|(2-2^-52)*2^-20}} *{{xpsoc|numfh|(2-2^-52)*2^10}} *{{xpsoc|numfh|(2-2^-52)*2^20}} For numbers with a decimal point, trailing zeros are avoided: *{{xpsoc|numfh|1e-3/8}} *{{xpsoc|numfh|1e-10/8}} *{{xpsoc|numfh|1e-20/8}} *{{xpsoc|numfh|.00000000000000000000125}} Large floats: *{{xpsoc|numfh|3^39}} Numbers of type integer have up to 19 digits: *{{xpsoc|numfh|trunc3^trunc39}}
テンプレート:Num
に戻る。
ナビゲーション メニュー
個人用ツール
ログイン
名前空間
テンプレート
議論
日本語
表示
閲覧
履歴表示
その他
検索
案内
索引
脳科学辞典について
最近完成した項目
編集履歴
執筆にあたって
引用の仕方
著作権について
免責事項
問い合わせ
各学会編集のオンライン用語辞典
About us (in English)
Twitter (BrainScienceBot)
ツール
リンク元
関連ページの更新状況
特別ページ
ページ情報
他のプロジェクト