テンプレート:Absexpr

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

-(-8)

Version of

producing an expression, for further computations without intermediate rounding and without the problem of scientific notation.

{{{{{subst|}}}#ifexpr:({{{1|-8}}})<0|-}}({{{1|-8}}}) (-8 is an example).
{{absexpr|-12345678*12345678}} = -(-12345678*12345678)


The default -8 does not work with substitution:

{{subst:absexpr|subst=subst:}} gives Expression error: unrecognised punctuation character "{"(-8)

(a known limitation, not serious in this case)

(3)

-(-3)

-(-8)

Expression error: unrecognised punctuation character "{"