Implementation of ceil function in C.
Posted
by RBA
on Stack Overflow
See other posts from Stack Overflow
or by RBA
Published on 2010-05-09T04:52:12Z
Indexed on
2010/05/09
4:58 UTC
Read the original article
Hit count: 664
Hi,
I have two doubts regarding ceil function..
1. The ceil() function is implemented in C.
if i use ceil(3/2), it works fine.. But when i use ceil(count/2)-if value of count is 3, then it gives compile time error..
/tmp/ccA4Yj7p.o(.text+0x364): In function FrontBackSplit': : undefined reference to
ceil' collect2: ld returned 1 exit status
How to use the ceil function in second case?? Please suggest..
2. How can i implement my own ceil function in C.
Please give some basic guidelines.
Thanks.
© Stack Overflow or respective owner