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