Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
不确定这是否正确并且会给我所需的结果。
Dim d As Decimal = 123.456D Dim s As String = d.ToString()
String.Format与C(货币)格式说明符一起使用:
String.Format
C
Dim d As Decimal = 123.456D Dim s as String = String.Format("{0:C}", d)
这会将您的小数转换为具有客户区域设置指定格式的货币字符串。
Dim d As Decimal = 123.456D Dim s As String = d.ToString("C");