How Excel VBA rounds Doubles to Integers?

后端 未结 2 896
清酒与你
清酒与你 2021-01-19 04:15

I am trying to understand the type of errors that could happen when a wrong type of variable is declared in VBA.

This is the code I am using:

Sub t         


        
2条回答
  •  没有蜡笔的小新
    2021-01-19 04:36

    Sandra, it will round up or down depending if it is an even or odd number. If it is an even number, it will be round down. Otherwise, it will round up.

提交回复
热议问题