floor of double(time_t)

Posted by plok on Stack Overflow See other posts from Stack Overflow or by plok
Published on 2010-03-15T18:00:57Z Indexed on 2010/03/15 18:29 UTC
Read the original article Hit count: 283

Filed under:
|
|

I cannot understand why this throws undefined reference to `floor'":

double curr_time = (double)time(NULL);
return floor(curr_time);

Hasn't it been casted to double, which is what floor receives?

© Stack Overflow or respective owner

Related posts about c

    Related posts about math