Java Double Number Round roundDownTo(int a, int quanta)

Here you can find the source of roundDownTo(int a, int quanta)

Description

round Down To

License

Mozilla Public License

Declaration

public static int roundDownTo(int a, int quanta) 

Method Source Code

//package com.java2s;
//License from project: Mozilla Public License 

public class Main {
    public static int roundDownTo(int a, int quanta) { // works with pot quanta
        return a & -quanta;
    }/*from w  w w.  j av  a  2s .c om*/
}

Related

  1. roundDown(int val, int shift)
  2. roundDown(int val, int to)
  3. roundDown(long n, long m)
  4. roundDown(long size, long roundBoundary)
  5. roundDown(long val, long delta)
  6. roundDownToNearest(double number, double nearest)
  7. roundDownToNearestK(float v, int k)
  8. roundDownToPowerOf2(int value)