DecimalFormat IsParseBigDecimal() Example
Returns whether the parse method returns BigDecimal
DecimalFormatclass IsParseBigDecimal() method example. This example shows you how to use IsParseBigDecimal() method.This method Returns whether the parse method returns BigDecimal
Here is the code:-
/**
* @Program that Returns whether the parse method returns BigDecimal
* IsParseBigDecimal.java
* Author:-RoseIndia Team
* Date:-12-Jun-2008
*/
import java.text.*;
public class IsParseBigDecimal {
public static void main(String[] args) {
// Creates a DecimalFormat object
DecimalFormat d = new DecimalFormat("36.538");
//Returns whether the parse method returns BigDecimal
System.out.println("IsParseBigDecimal : "+d.isParseBigDecimal());
}
} |
Output of the Program
| IsParseBigDecimal : false |
|