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 mb As Long = Math.Round(((Endsize - startSize) / 1000000), 2)
但是,这会返回不带小数的四舍五入数,而不是正确的四舍五入数...数字 53.3998 返回为 54,而我期望的是 53.34?
选项严格开启
Dim mb As Double = Math.Round(((Endsize - startSize) / 1000000), 2)