Java Integer Mod mod(final int n, final int N)

Here you can find the source of mod(final int n, final int N)

Description

mod

License

Open Source License

Declaration

public static int mod(final int n, final int N) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

public class Main {
    public static int mod(final int n, final int N) {
        final double co;
        co = (n - N * (n / N));/*from   ww w .j a va2s  . c o m*/
        return ((int) co);
    }
}

Related

  1. mod(final int dividend, final int divisor)
  2. mod(final int dividend, final int divisor)
  3. mod(int a, int b)
  4. Mod(int a, int b)
  5. mod(int a, int b)
  6. mod(int a, int b)