Hm? Would that work? The division operator used on two integers already returns an integer, what would a typecast accomplish? I might be totally wrong though, never really used C.|
I assume there's a function that does what you want - ceiling(x) instead of round(x). You'd need to supply it with a float, though, for obvious reasons.
#96072, By Moonbender C Programming
Moonbender 407 posts
Seen 7 years ago
Registered 16 years ago