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.
我认为一个简单的数学问题,我正在寻找一种算法来四舍五入到最接近的整数偶数所以
4.4 = 6 5.1 = 6 2.1 = 4 1.9 = 2 etc....
如果你能给我 VBA 语法,那就太棒了。我知道 excel 作为=even(..)函数,但我无法让它在 VBA 中工作。
=even(..)
谢谢
您可以通过以下方式简单地使用 Excel 函数:
Application.WorksheetFunction.Even(YourNumber)