Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ abs(3) — NEWS-os 3.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

floor(3M)

ABS(3)  —  UNIX Programmer’s Manual

名称

abs  −  整数の絶対値

形式

abs(i)
int i;

解説

abs は、 整数オペランドの絶対値を返します。

関連事項

fabs については、 floor(3M) を参照。

バグ

最大の負整数に abs(0x80000000) 関数を適用すると、 最大の負整数を生成します。 すなわち、

abs(0x80000000)
は、結果として、 0x80000000 を返します。

NEWS-OSRelease 3.3

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026