小数点以下を切り上げて丸める関数。 double ceil(double x); float ceilf(float x); long double ceill(long double x); たとえば、 #include <stdio.h> #include <math.h> int main() { float a = 1.2345f; int b; b = ceil( a ); printf("%f %d\n", a, b); } とすると、実</math.h></stdio.h>…
引用をストックしました
引用するにはまずログインしてください
引用をストックできませんでした。再度お試しください
限定公開記事のため引用できません。