Java Double Number Round roundDoubleNicely(double intensity)

Here you can find the source of roundDoubleNicely(double intensity)

Description

round Double Nicely

License

Apache License

Declaration

public static double roundDoubleNicely(double intensity) 

Method Source Code

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

public class Main {
    public static double roundDoubleNicely(double intensity) {
        return Math.round(intensity * 10000f) / 10000f;
    }/*  w w  w  .j  a v a2s.  c  o m*/
}

Related

  1. roundDouble(double val, int precision)
  2. roundDouble(double value)
  3. roundDouble(double value, int afterDecimalPoint)
  4. roundDouble3(double r)
  5. roundDoubleDownTo(double value, double steps)
  6. roundDoubleTo(double val, int pow)
  7. roundDoubleToInt(final double VALUE)
  8. roundDoubleToPlace(double d, int place)
  9. roundDoubleValue(double value)