≫ ホーム ≫ C言語ヘッダファイル別一覧 | C言語アルファベット別一覧 ≫ math.h ≫ ceil, ceilf, ceill
天井関数 (ceiling function) (引数以上の最小の整数値) を計算します.
#include <math.h>
double ceil( double x );
ceil 関数は,x 以上の最小の整数値を計算し,結果を double 型で返します.
#include <math.h>
float ceilf( float x );
ceilf 関数は,x 以上の最小の整数値を計算し,結果を float 型で返します.
#include <math.h>
long double ceill( long double x );
ceill 関数は,x 以上の最小の整数値を計算し,結果を long double 型で返します.
小数点以下を切り上げる のサンプルプログラムをご覧下さい.