Java Float Number Mod fmod(double a, double b)

Here you can find the source of fmod(double a, double b)

Description

fmod

License

Open Source License

Declaration

public static double fmod(double a, double b) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double fmod(double a, double b) {
        double mod = a % b;
        if (mod < 0) {
            mod += b;//from  ww  w .  j  av a2 s .  c  om
        }
        return mod;
    }
}

Related

  1. fmod(double a, double b)
  2. FMod(double x, double y)
  3. fmodf(Float float1, float float2)
  4. fmodulo(double v1, double v2)
  5. mod(final float a, final float b)