Description Of BigDecimal: toString()
The java.math.BigDecimal.toString() returns the string representation of this BigDecimal , using scientific notation if an exponent is needed.BigDecimal.toString() method returns string representation of this BigDecimal.
Code Example Java BigDecimal
import java.math.BigDecimal;
public class BigDecimalExam {
public static void main(String[] args) {
BigDecimal bg = new BigDecimal("1E+5");
System.out.println("String value of " + bg + " is " + bg.toString());
}
}
ไม่มีความคิดเห็น :
แสดงความคิดเห็น