【发布时间】:2014-10-24 11:38:18
【问题描述】:
在前面,我将文本设置为 priceFormat 为 S$%.2f。
textPrice.setText(String.format(priceFormat, item.getPrice()));
现在我想将它转换为一个双变量,我绝对认为我必须使用 priceFormat 但我不知道如何使用。这个底线是错误的。
double Price=Double.parseDouble(textPrice.getText());
【问题讨论】:
标签: android