字符串转换问题 [英] String Conversion Question

查看:61
本文介绍了字符串转换问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有,


我有货币字符串。例如:$ 1.29


将它们转换为十进制格式的最佳方法是:" 1.29"


谢谢,


TC

Hey All,

I have strings in currency. For example: "$1.29"

What is the best way to convert them to decimal formatted like: "1.29"

Thanks,

TC

推荐答案

1.29"


将它们转换为十进制格式的最佳方法是什么:" 1.29"


谢谢,


TC
1.29"

What is the best way to convert them to decimal formatted like: "1.29"

Thanks,

TC


8月3日,8:58 * pm,TC < getmyemai ... @ yahoo.comwrote:
On Aug 3, 8:58*pm, "TC" <getmyemai...@yahoo.comwrote:

嘿所有,


我有货币字符串。 *例如:*"
Hey All,

I have strings in currency. *For example: *"


1.29"


将它们转换为十进制格式的最佳方法是:*" 1.29


谢谢,


TC
1.29"

What is the best way to convert them to decimal formatted like: *"1.29"

Thanks,

TC



Lookup Decimal.Parse and Decimal.ParseExact


谢谢,


Seth Rowe [MVP]
http://sethrowe.blogspot.com/


这篇关于字符串转换问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆