#96072, By Moonbender C Programming

  • Moonbender 23 Jun 2003 23:05:16 407 posts
    Seen 7 years ago
    Registered 16 years ago
    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.
Log in or register to reply