ChoiceFormat: nextDouble(double d) : ChoiceFormat « java.text « Java by API






ChoiceFormat: nextDouble(double d)

 

import java.text.ChoiceFormat;

public class Main {
  public static void main(String[] argv) throws Exception {

    double d = 1.2;

    double d2 = ChoiceFormat.nextDouble(d);
    System.out.println(d2);
  }
}
//1.2000000000000002

   
  








Related examples in the same category

1.new ChoiceFormat(double[] limits, String[] formats)
2.ChoiceFormat: previousDouble(double d)