テンプレート:Shn/1

提供:脳科学辞典
< テンプレート:Shn
2015年3月14日 (土) 12:15時点におけるNijcadmin (トーク | 投稿記録)による版 (1版)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動
[edit] [purge] Documentation icon Template documentation

This template determines a decimal number in non-scientific notation, consisting of 17 digits and trailing zeros, representing an internal number >=1e16, given by an expression.

Rounding errors are avoided by comparing the expression with the borderline case number in non-scientific notation. If multiple sequences represent the same internal number a more round number is preferred.

Because of multiple use of the result of Template:Oom it has to be supplied as a parameter.

Examples

  • {{shn/1|12345678901234567|oom=16}} → 12345678901234568
  • {{shn/1|4e23-1e8|oom=23}} → 399999999999999900000000
  • {{shn/1|4e23-1e7|oom=23}} → 400000000000000000000000
  • {{shn/1|1e308|oom=308}} → 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  • {{shn/1|100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000|oom=308}} → 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  • {{hex|12345678901234567}}1.5ee2a2eb5a5c4hex*2^53
  • {{hex|12345678901234568}}1.5ee2a2eb5a5c4hex*2^53
  • {{hex|4e23-1e8}}1.52d02c7e14af5hex*2^78
  • {{hex|399999999999999900000000}}1.52d02c7e14af5hex*2^78
  • {{hex|4e23-1e7}}1.52d02c7e14af6hex*2^78
  • {{hex|399999999999999990000000}}1.52d02c7e14af6hex*2^78
  • {{hex|4e23}}1.52d02c7e14af6hex*2^78
  • {{hex|400000000000000000000000}}1.52d02c7e14af6hex*2^78
  • {{hex|100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000}}1.1ccf385ebc8a0hex*2^1023