Here you can find the source of roundDoubleNicely(double intensity)
public static double roundDoubleNicely(double intensity)
//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*/ }