title: vb.net multi dimensional arrays
body: <p>net right now regarding multi dimensional array my problem is i want to get the nearest numbers for example my input was 13000, the nearest number will be 11667 and then it will subtract it by 13000, then it will multiply by 0.25 and add my 1875.00. here is my code about multidimensional array can you please help me regarding this? i need this in my project thank you in advance</p>
  
  <pre><code>    If ComboBox5.Text = "Z" Then
          Dim zero(3, 8) As Double
          Dim row As Double
  
          Dim col As Double
  
          'col 1
          zero(0, 0) = 0.0
          zero(1, 0) = 0
          zero(2, 0) = 1
  
          'col 2
          zero(0, 1) = 0.0
          zero(1, 1) = 0.05
          zero(2, 1) = 0
  
          'col 3
          zero(0, 2) = 41.67
          zero(1, 2) = 0.1
          zero(2, 2) = 833
  
          'col 4
          zero(0, 3) = 208.33
          zero(1, 3) = 0.15
          zero(2, 3) = 2500
  
          'col 5
          zero(0, 4) = 708.33
          zero(1, 4) = 0.2
          zero(2, 4) = 5833
  
          'col 6
          zero(0, 5) = 1875.0
          zero(1, 5) = 0.25
          zero(2, 5) = 11667
  
          'col 7
          zero(0, 6) = 4166.67
          zero(1, 6) = 0.3
          zero(2, 6) = 20833
  
          'col 8
          zero(0, 7) = 10416.67
          zero(1, 7) = 0.32
          zero(2, 7) = 41667
  
  
          For row = 0 To 3
              For col = 0 To 8
  
                  If Val(TextBox18.Text) &gt; Val(zero(row, col)) And Val(TextBox18.Text) &lt; Val(zero(row - 1, col + 1)) Then
                      ListView1.Items.Add(zero(row, col))
                  End If
              Next
          Next
  
  
  
      End If
  </code></pre>