I have a string, 12345.00
, and I would like it to return 12345.0
.
(我有一个字符串12345.00
,我希望它返回12345.0
。)
I have looked at trim
, but it looks like it is only trimming whitespace and slice
which I don't see how this would work.
(我已经看过trim
,但是看起来它只是在修剪空白和slice
,我看不到它如何工作。)
Any suggestions? (有什么建议么?)
ask by Phill Pafford translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…