T
The Cool Giraffe
I have trouble making the following line compile.
int a = round (2.6);
I have, of course, included <cmath> and i can go flooring and
ceiling with no problems. However, the rounding seems not to
be working at all. The compiler barks out that:
Error 3 error C3861: 'round': identifier not found
and that's the end of this story. I can (and most likely
will) simply add 0.5 and the floor-ify the result but
that's just wrong, so wrong...
What can be the reason? The remedy?
int a = round (2.6);
I have, of course, included <cmath> and i can go flooring and
ceiling with no problems. However, the rounding seems not to
be working at all. The compiler barks out that:
Error 3 error C3861: 'round': identifier not found
and that's the end of this story. I can (and most likely
will) simply add 0.5 and the floor-ify the result but
that's just wrong, so wrong...
What can be the reason? The remedy?