What is the right way to find Highest decimal number out of 10 different numbers(or more)? Since I’m Newb, I made this code below, and surprisingly it doesn’t work every time! All numbers are declared as decimals but some times 0.02 is a higher number then 0.11!!!



Code:
 If n2 > (n3 And n4 And n5 And n6 And n7 And n8 And n9) Then
            TextBox11.Text = n2
        End If
        If n3 > (n2 And n4 And n5 And n6 And n7 And n8 And n9) Then
            TextBox11.Text = n3
        End If
        If n4 > (n2 And n3 And n5 And n6 And n7 And n8 And n9) Then
            TextBox11.Text = n4
        End If
        If n5 > (n2 And n3 And n4 And n6 And n7 And n8 And n9) Then
            TextBox11.Text = n5
        End If
        If n6 > (n2 And n3 And n4 And n5 And n7 And n8 And n9) Then
            TextBox11.Text = n6
        End If
        If n7 > (n2 And n3 And n4 And n5 And n6 And n8 And n9) Then
            TextBox11.Text = n7
        End If
        If n8 > (n2 And n3 And n4 And n5 And n6 And n7 And n9) Then
            TextBox11.Text = n8
        End If
        If n9 > (n2 And n3 And n4 And n5 And n6 And n7 And n8) Then
            TextBox11.Text = n9
        End If