tail head cat sleep
QR code linking to this page

manページ  — RINT

名称

rint, rintf – 浮動小数点形式で整数値への丸め

内容

ライブラリ

Math Library (libm, -lm)

書式

#include <math.h>

double
rint(double x);

float
rintf(float x);

解説

rint() および rintf() 関数は、広く行なわれている丸め方法に従って、 (倍精度数または単精度数として表現される) x に最も近い整数値を返します。

関連項目

abs(3), ceil(3), fabs(3), floor(3), ieee(3), math(3)

歴史

rint() 関数は、 AT&T v6 で登場しました。

RINT (3) March 10, 1994

tail head cat sleep
QR code linking to this page


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

“ The most horrifying thing about Unix is that, no matter how many times you hit yourself over the head with it, you never quite manage to lose consciousness. It just goes on and on. ”
— Patrick Sobalvarro