「テンプレート:Numf」の版間の差分

提供:脳科学辞典
ナビゲーションに移動 検索に移動
(1版)
 
(相違点なし)

2015年3月14日 (土) 12:15時点における最新版

This template produces the result of Template:Num with thousands separators.

Examples

  • {{numf|1.2}} → 1.2
  • {{numf|-1.23}} → -(1.23)
  • {{numf|0}} → 0
  • {{numf|-12,300,000,000,000,000/1e16}} → -(1.23)
  • {{numf|12.34567890123456789}} → 12.345678901234567
  • {{numf|123.4567890123456789}} → 123.45678901234568
  • {{numf|1234.567890123456789}} → 1,234.567890123457
  • {{numf|12345.67890123456789}} → 12,345.678901234567
  • {{numf|123456.7890123456789}} → 123,456.78901234567
  • {{numf|1234567.890123456789}} → 1,234,567.8901234567
  • {{numf|12345678.90123456789}} → 12,345,678.901234567
  • {{numf|123456789.0123456789}} → 123,456,789.01234567
  • {{numf|1234567890.123456789}} → 1,234,567,890.1234567
  • {{numf|12345678901.23456789}} → 12,345,678,901.234568
  • {{numf|123456789012.3456789}} → 123,456,789,012.34567
  • {{numf|1234567890123.456789}} → 1,234,567,890,123.4568
  • {{numf|12345678901234.56789}} → 12,345,678,901,234.568
  • {{numf|123456789012345.6789}} → 123,456,789,012,345.67
  • {{numf|1234567890123456.789}} → 1,234,567,890,123,456.8
  • {{numf|12345678901234567.89}} → 12,345,678,901,234,568
  • {{numf|123456789012345678.9}} → 123,456,789,012,345,680
  • {{numf|12345678901234567891}} → 12,345,678,901,234,567,000
  • {{numf|123456789012345678912}} → 123,456,789,012,345,680,000
  • {{numf|1234567890123456789123}} → 1,234,567,890,123,456,800,000
  • {{numf|12345678901234567891234}} → 12,345,678,901,234,568,000,000

Compare:

  • {{formatnum:{{#expr:1234.567890123456789}}}} → 1,234.5678901235

Check suitability in an expression:

  • {{#expr:{{formatnum:{{numf|1234.567890123456789}}|R}}}} → 1234.5678901235