os/libc/math.c

8 lines
128 B
C
Raw Normal View History

2019-02-09 12:52:45 -06:00
float ceilf(float num) {
int inum=(int)num;
if (num==(float)inum) {
return (float)inum;
}
return (float)(inum+1);
}