in reply to •Re: Best way to make sure a number is an even multiple of another?
in thread Best way to make sure a number is an even multiple of another?

Yeah, thats it. Thanks and ++ merlyn. I knew it was possible, I just couldn't see past the damn if. :-)


---
demerphq

    First they ignore you, then they laugh at you, then they fight you, then you win.
    -- Gandhi

    Flux8


  • Comment on Re^2: Best way to make sure a number is an even multiple of another?

Replies are listed 'Best First'.
Re^3: Best way to make sure a number is an even multiple of another?
by Arunbear (Prior) on Oct 21, 2004 at 14:01 UTC
    I may have misunderstood this, but with $n = 19 and $m = 3, fix gives 21 which is not an even multiple of 3.

    Why not just use $m * $n * 2 ?

      7 * 3 = 21?
        7 is not an even number (i.e. - not divisible by 2)