Java Double Number Round roundDown(double value, double units)

Here you can find the source of roundDown(double value, double units)

Description

round Down

License

LGPL

Declaration

public static double roundDown(double value, double units) 

Method Source Code

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

public class Main {
    public static double roundDown(double value, double units) {
        double scaled = value / units;
        return Math.floor(scaled) * units;
    }//  w  w w  .  j  a v a 2s.c  o m
}

Related

  1. roundDown(double a)
  2. roundDown(double amt, double digits)
  3. roundDown(double n)
  4. roundDown(double num)
  5. roundDown(double val, int decimals)
  6. roundDown(double value, int gridSize)
  7. roundDown(final float realNumber)
  8. RoundDown(final T number)
  9. roundDown(int n, int m)