I am trying to reduce numbers
Dim x As String = 7 + 5 + 5 / 3
TextBox1.Text = x
the result will be 1.66666666666667
.
I want to reduce it to exactly 1.6
.
I tried this:
Dim x As String = 5
TextBox1.Text = String.Format("{0:N}", x / 3)
that reduces it to 1.667
.
But I want to reduce it to only one number after point, like 1.6