Java DecimalFormat .getMaximumIntegerDigits ()

Syntax

DecimalFormat.getMaximumIntegerDigits() has the following syntax.

public int getMaximumIntegerDigits()

Example

In the following code shows how to use DecimalFormat.getMaximumIntegerDigits() method.


import java.text.DecimalFormat;
/*  w  ww.ja va 2s  . c  om*/
public class Main {
  public static void main(String[] argv) throws Exception {
    DecimalFormat format = new DecimalFormat();
    
    System.out.println(format.getMaximumIntegerDigits());

  }
}

The code above generates the following result.





















Home »
  Java Tutorial »
    java.text »




DateFormat
DecimalFormat
NumberFormat
SimpleDateFormat