发布网友
共1个回答
热心网友
这个可以直接用字符串格式化
也可以用截取吧
String str = "100.562";
String result = str.substring(0, str.indexOf("."));