int ix = -4, iy; double dx = -3.141593, dy; iy = njAbs( ix ); dy = njAbs( dx ); %結果% -4 の絶対値は 4 です。 -3.141593 の絶対値は 3.141593 です。