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.
我试图找出分配给 strA 的值?
Dim dbleTest as Double = 0.25 Dim strA as String = dblTest.ToString("p")
如果您更正错字并使用Dim dlbTest As Double = 0.25,则会打印25.00 %(特定于语言环境,某些语言环境可能有不同的小数分隔符)。
Dim dlbTest As Double = 0.25
25.00 %
如果没有,结果将取决于文件中当前进行的选项显式检查,以及可能分配给的值dblTest(如果它存在于范围内)。
dblTest