大家好,又见面了,我是你们的朋友全栈君。
public static void main(String[] args) {
String str1="2.30";
BigDecimal bd=new BigDecimal(str1);
System.out.println(bd);
}
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/133758.html原文链接:https://javaforall.net