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.
假设sngX = 67521.345,当这行代码会显示什么:
sngX = 67521.345
Label1.Text = FormatCurrency(sngX)
被执行。
假设您的系统区域设置货币符号为$,前导数字为假,数字分组为假,则FormatCurrency(67521.345)=$67,521.35
$
FormatCurrency(67521.345)
$67,521.35
由于您没有指定您的区域设置,也没有说您想为其他FormatCurrency参数使用特定值,因此您的结果可能会有所不同。
FormatCurrency