tail head cat sleep
QR code linking to this page

manページ  — ABS

名称

abs – 整数の絶対値関数

内容

ライブラリ

Standard C Library (libc, -lc)

書式

#include <stdlib.h>

int
abs(int j);

解説

abs() 関数は、整数 j の絶対値を計算します。

戻り値

abs() 関数は、絶対値を返します。

関連項目

cabs(3), fabs(3), floor(3), hypot(3), labs(3), math(3)

規格

abs() 関数は、 ISO/IEC 9899:1990 ("ISO C90") に適合しています。

バグ

最大の負の整数の絶対値は、負のままです。

ABS (3) June 4, 1993

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

“ Like a classics radio station whose play list spans decades, Unix simultaneously exhibits its mixed and dated heritage. There's Clash-era graphics interfaces; Beatles-era two-letter command names; and systems programs (for example, ps) whose terse and obscure output was designed for slow teletypes; Bing Crosby-era command editing (# and @ are still the default line editing commands), and Scott Joplin-era core dumps. ”
— The Unix Haters' handbook