Java Double Number mod mod(double n, double d)

Here you can find the source of mod(double n, double d)

Description

mod

License

Apache License

Declaration

public static final double mod(double n, double d) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static final double mod(double n, double d) {
        return n - d * Math.floor(n / d);
    }/*  ww  w . j a v  a2s . c  o m*/
}

Related

  1. mod(double a, double b)
  2. Mod(double arg1, double arg2)
  3. mod(double i, final double n)
  4. mod(double left, double right)
  5. mod(double m, double n)
  6. mod(double number, double mod)
  7. mod(double value, double mod)
  8. mod(double x, double m)
  9. mod(double x, double y)