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

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

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

-(-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 "{"