Why log(num)/log(4)%1 == 0 works, but log(num)%log(4) == 0 doesn't?


  • 0
    Y

    Technically, I think
    log(num)/log(4)%1 == 0
    and
    log(num)%log(4) == 0
    meaning the same thing. However, the 1st one works, and the 2nd one doesn't. Is that deal to some dirty double operation? or is it just wrong?

    Thanks.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.