Example usage for java.text ChoiceFormat previousDouble

List of usage examples for java.text ChoiceFormat previousDouble

Introduction

In this page you can find the example usage for java.text ChoiceFormat previousDouble.

Prototype

public static final double previousDouble(double d) 

Source Link

Document

Finds the greatest double less than d .

Usage

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
}