if ( atoi( argv[1] ) % atoi( argv[2] ) == .33333 )
You misunderstood what the remainder is. The remainder is an integer value, not a fractional value. In other words, 7 % 3
gives 1
because 3 fits two times into 7 and then there is 1 left, that's the remainder.