Java Number Round roundTo100th(double w)

Here you can find the source of roundTo100th(double w)

Description

round Toth

License

Open Source License

Declaration

private static double roundTo100th(double w) 

Method Source Code

//package com.java2s;

public class Main {
    private static double roundTo100th(double w) {
        return Math.floor(w * 100 + 0.5) / 100;
    }//from  w ww .j  a  v a2  s.co  m
}

Related

  1. roundTo(double val, double prec)
  2. roundTo(final double VALUE, final double TARGET)
  3. roundTo(float number, int base)
  4. roundTo(float number, int numPlaces)
  5. roundTo(float val, int numPlaces)
  6. roundTo2Decimals(double value)
  7. roundTo2Digits(double amount)
  8. roundTo2SigPlaces(double value)
  9. roundTo3Places(double n)