向上
Dim n1 As Double = 1.7Dim n2 As Double = 0.5Dim n As Integer = n1 / n2If n * n2 < n1 Then n += 1msgbox(n*n2)
向下
Dim n1 As Double = 1.3Dim n2 As Double = 0.5Dim n As Integer = n1 / n2If n * n2 > n1 Then n -= 1msgbox(n*n2)