Java Fraction Format format(double value, String formatString)

Here you can find the source of format(double value, String formatString)

Description

format

License

Open Source License

Declaration

public static String format(double value, String formatString) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.DecimalFormat;

public class Main {
    public static String format(double value, String formatString) {
        return new DecimalFormat(formatString).format(value);
    }/* ww  w  .j  a va 2  s. co m*/
}

Related

  1. format(double value)
  2. format(double value)
  3. format(double value)
  4. format(double value, double unit)
  5. format(double value, int decimalPlace)
  6. format(double x, int max, int min)
  7. format(final double d)
  8. format(final double number)
  9. format(final double value)