DecimalFormat GetMultiplier() Example
Gets the multiplier for use in percent, per mille, and similar formats.
DecimalFormatclass GetMultiplier() method example. This example shows you how to use GetMultiplier() method.This method Gets the multiplier for use in percent, per mille, and similar formats.
Here is the code:-
/**
* @Program that Gets the multiplier for use in percent,and similar formats
* GetMultiplier.java
* Author:-RoseIndia Team
* Date:-12-Jun-2008
*/
import java.text.*;
public class GetMultiplier {
public static void main(String[] args) {
// Creates a DecimalFormat object
DecimalFormat d = new DecimalFormat();
//Gets the multiplier for use in percent,and similar formats
System.out.println("The multiplier for use in percent,and similar formats is: "
+ d.getMultiplier());
}
} |
Output of the Program
| The multiplier for use in percent,and similar formats is: 1 |
|