テンプレート:Csnのソースを表示
←
テンプレート:Csn
ナビゲーションに移動
検索に移動
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
<includeonly>{{{{{|safesubst:}}}#switch: {{{{{|safesubst:}}}#expr: -1+(0 <= ({{{1}}}) round 0)+(1 <= (({{{1}}}) round 0))+(10 <= (({{{1}}}) round 0))+(100 <= (({{{1}}}) round 0))+(1000 <= (({{{1}}}) round 0))+(10000 <= (({{{1}}}) round 0))+(100000 <= (({{{1}}}) round 0))+(1000000 <= (({{{1}}}) round 0))+(10000000 <= (({{{1}}}) round 0))+(100000000 <= (({{{1}}}) round 0))+(1000000000 <= (({{{1}}}) round 0))+(10000000000 <= (({{{1}}}) round 0))+(100000000000 <= (({{{1}}}) round 0))+(1000000000000 <= (({{{1}}}) round 0))+(10000000000000 <= (({{{1}}}) round 0))+(100000000000000 <= (({{{1}}}) round 0))+(1000000000000000 <= (({{{1}}}) round 0))}} | 0=0 | 1| 2| 3={{{{{|safesubst:}}}#expr: ((({{{1}}}) round 0) mod 1000 - (({{{1}}}) round 0) mod 1)}} | 4| 5| 6={{{{{|safesubst:}}}#expr: ((({{{1}}}) round 0) mod 1000000 - (({{{1}}}) round 0) mod 1000)/ 1000}},{{{{{|safesubst:}}}lz3|(({{{1}}}) round 0) mod 1000 - (({{{1}}}) round 0) mod 1}} | 7| 8| 9={{{{{|safesubst:}}}#expr: ((({{{1}}}) round 0) mod 1000000000 - (({{{1}}}) round 0) mod 1000000)/ 1000000}},{{{{{|safesubst:}}}lz3|((({{{1}}}) round 0) mod 1000000 - (({{{1}}}) round 0) mod 1000)/ 1000}},{{{{{|safesubst:}}}lz3|(({{{1}}}) round 0) mod 1000 - (({{{1}}}) round 0) mod 1}} |10|11|12={{{{{|safesubst:}}}#expr: ((({{{1}}}) round 0) mod 1000000000000 - (({{{1}}}) round 0) mod 1000000000)/ 1000000000}},{{{{{|safesubst:}}}lz3|((({{{1}}}) round 0) mod 1000000000 - (({{{1}}}) round 0) mod 1000000)/ 1000000}},{{{{{|safesubst:}}}lz3|((({{{1}}}) round 0) mod 1000000 - (({{{1}}}) round 0) mod 1000)/ 1000}},{{{{{|safesubst:}}}lz3|(({{{1}}}) round 0) mod 1000 - (({{{1}}}) round 0) mod 1}} |13|14|15={{{{{|safesubst:}}}#expr: ((({{{1}}}) round 0) mod 1000000000000000 - (({{{1}}}) round 0) mod 1000000000000)/1000000000000}},{{{{{|safesubst:}}}lz3|((({{{1}}}) round 0) mod 1000000000000 - (({{{1}}}) round 0) mod 1000000000)/1000000000}},{{{{{|safesubst:}}}lz3|((({{{1}}}) round 0) mod 1000000000 - (({{{1}}}) round 0) mod 1000000)/1000000}},{{{{{|safesubst:}}}lz3|((({{{1}}}) round 0) mod 1000000 - (({{{1}}}) round 0) mod 1000)/1000}},{{{{{|safesubst:}}}lz3|(({{{1}}}) round 0) mod 1000 - (({{{1}}}) round 0) mod 1}} |#default={{{{{|safesubst:}}}#expr: {{{1}}}}}}}</includeonly><noinclude> '''C'''omma '''S'''eparated '''N'''umber Separates digits of an integer in groups of three by adding [[w:Decimal_separator#Thousands_separator|thousands separators]]; works for numbers under 1E15. Only positive numbers are supported, larger numbers are just provided in their standard output form. Csn does some additional things that formatnum does not: rounding to an integer, removing leading zeros, removing - from -0, writing in scientific notation, computations. *{{csn|123}} *{{csn|1234}} *{{csn|12345}} *{{csn|123456}} *{{csn|1234567}} *{{csn|12345678}} *{{csn|123456789}} *{{csn|1234567890}} ;Examples comparing csn and <nowiki>{{formatnum:</nowiki> ''number'' }} :{{xpd1|csn demo|-1}} :{{xpd1|csn demo|-0}} :{{xpd1|csn demo|0.1}} :{{xpd1|csn demo|1.23}} :{{xpd1|csn demo|12.3}} :{{xpd1|csn demo|6*20}} :{{xpd1|csn demo|1234}} :{{xpd1|csn demo|1230}} :{{xpd1|csn demo|1200}} :{{xpd1|csn demo|1000}} :{{xpd1|csn demo|0000}} :{{xpd1|csn demo|12345.67890123456}} :{{xpd1|csn demo|123456.7890123456}} :{{xpd1|csn demo|1234567.890123456}} :{{xpd1|csn demo|12345678.90123456}} :{{xpd1|csn demo|123456789.0123456}} :{{xpd1|csn demo|1234567890.123456}} :{{xpd1|csn demo|12345678901.23456}} :{{xpd1|csn demo|123456789012.3456}} :{{xpd1|csn demo|1234567890123.456}} :{{xpd1|csn demo|12345678901234.56}} :{{xpd1|csn demo|123456789012345.6}} :{{xpd1|csn demo|1234567890123456.}} :{{xpd1|csn demo|12}} :{{xpd1|csn demo|1234}} :{{xpd1|csn demo|123456}} :{{xpd1|csn demo|12345678}} :{{xpd1|csn demo|1234567890}} :{{xpd1|csn demo|123456789012}} :{{xpd1|csn demo|12345678901234}} <nowiki>{{subst:csn|123456789012345}}</nowiki> gives the wikitext 123,456,789,012,345 <nowiki>{{subst:formatnum:123456789012345}}</nowiki> gives the wikitext 123,456,789,012,345 {{xpd1|csn demo|1*2*3*4*5*6*7*8*9*10*11*12*13*14*15*16*17}}. [[Category:Mathematical templates|{{PAGENAME}}]] </noinclude>
テンプレート:Csn
に戻る。
ナビゲーション メニュー
個人用ツール
ログイン
名前空間
テンプレート
議論
日本語
表示
閲覧
履歴表示
その他
検索
案内
索引
脳科学辞典について
最近完成した項目
編集履歴
執筆にあたって
引用の仕方
著作権について
免責事項
問い合わせ
各学会編集のオンライン用語辞典
About us (in English)
Twitter (BrainScienceBot)
ツール
リンク元
関連ページの更新状況
特別ページ
ページ情報
他のプロジェクト