Java DecimalFormat.getMultiplier()

Syntax

DecimalFormat.getMultiplier() has the following syntax.

public int getMultiplier()

Example

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


import java.text.DecimalFormat;
/*ww  w  .  j a  v a 2 s  . com*/
public class Main {
  public static void main(String[] argv) throws Exception {
    DecimalFormat format = new DecimalFormat();
    
    System.out.println(format.getMultiplier());

  }
}

The code above generates the following result.





















Home »
  Java Tutorial »
    java.text »




DateFormat
DecimalFormat
NumberFormat
SimpleDateFormat