Search:

Type: Posts; User: Norm

Search: Search took 0.21 seconds.

  1. Replies
    7
    Views
    1,029

    Re: Simple Question about modular division

    Sorry, I would do exactly what you have been doing. You need to start at the very beginning and print out the results of each expression and compare what is printed with what you have manually...
  2. Replies
    7
    Views
    1,029

    Re: Simple Question about modular division

    What is printed out for each expression?
    Which expression is NOT returning the value you expect?
    Simple expressions contain only ONE operator. If there is a method call, it should take a...
  3. Replies
    7
    Views
    1,029

    Re: Simple Question about modular division

    Which statement and expression is not giving the results you want?
    Add some println() statements to print all the results so you can see them and know which expression is wrong.
    Break the...
  4. Replies
    7
    Views
    1,029

    Re: Simple Question about modular division

    Try writing a small testing program that tries lots of modular math with different values so you see what the operator does.

    System.out.println( (x % y));
    change x and y to see the results.
    ...
Results 1 to 4 of 4