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.
知道如何将指数值转换为十进制值。我有下面的代码返回为 1.00000000000051E-02 但我想显示为 0.01 (100-99.99)
Dim total Dim pct total = 99.99 pct=(100-total) msgbox pct
使用Round功能:
Round
Dim total Dim pct total = 99.99 pct = Round(100-total, 2) MsgBox pct