List of usage examples for java.text ChoiceFormat previousDouble
public static final double previousDouble(double d)
From source file:Main.java
public static void main(String[] argv) throws Exception { double d = 1.2; // Get the largest double less than d double d1 = ChoiceFormat.previousDouble(d); System.out.println(d1);//from w w w .j a v a 2 s. c om }