Java DecimalFormat .getMinimumIntegerDigits ()
Syntax
DecimalFormat.getMinimumIntegerDigits() has the following syntax.
public int getMinimumIntegerDigits()
Example
In the following code shows how to use DecimalFormat.getMinimumIntegerDigits() method.
import java.text.DecimalFormat;
//from w w w . ja va 2 s . co m
public class Main {
public static void main(String[] argv) throws Exception {
DecimalFormat format = new DecimalFormat();
System.out.println(format.getMinimumIntegerDigits());
}
}
The code above generates the following result.