阅读背景:

如何在Java中将字符串转换为Double

来源:互联网 

I want to convert a string (for example .50) to a double. I understand I can use Double.parseDouble() but I assume this works only if the string does not contain any other chars (such as the dollar sign). The purpose is to compare two Strings (which contain dollar values plus a dollar sign) and determine which one is greater and which one is smallerI want to convert a string (for example .50)




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: